Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct { ServiceName string `json:"SERVICE_NAME" envconfig:"SERVICE_NAME"` ProjectID string `json:"PROJECT_ID" envconfig:"PROJECT_ID"` Environment string `json:"ENVIRONMENT" envconfig:"ENVIRONMENT"` Port string `json:"PORT" envconfig:"PORT"` Host string `json:"HOST" envconfig:"HOST"` HttpTimeout time.Duration `json:"HTTP_TIMEOUT" envconfig:"HTTP_TIMEOUT"` LogLevel string `json:"LOG_LEVEL" envconfig:"LOG_LEVEL"` DBConfig db.Config `json:"DB_CONFIG" envconfig:"DB_CONFIG"` TokenSecretKey string `json:"TOKEN_SECRET_KEY" envconfig:"TOKEN_SECRET_KEY"` Logger *slog.Logger }
func (*AppConfig) InitLogger ¶
Click to show internal directories.
Click to hide internal directories.