config

package
v0.0.0-...-b5678d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	App    configs.App   `yaml:"app"`
	HTTP   configs.HTTP  `yaml:"http"`
	Logger logger.Config `yaml:"logger"`
	GRPC   GRPC          `yaml:"client"`
}

func NewConfig

func NewConfig() (*Config, error)

type GRPC

type GRPC struct {
	AuthURL     string `env-required:"true" yaml:"auth_client_url" env:"AUTH_CLIENT_URL"`
	NoteURL     string `env-required:"true" yaml:"note_client_url" env:"NOTE_CLIENT_URL"`
	CategoryURL string `env-required:"true" yaml:"category_client_url" env:"CATEGORY_CLIENT_URL"`
	UserURL     string `env-required:"true" yaml:"user_client_url" env:"USER_CLIENT_URL"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳