Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
Name string `env:"APP_NAME,required"`
Version string `env:"APP_VERSION,required"`
}
App -.
type Config ¶
type Config struct {
App App
HTTP HTTP
Log Log
PG PG
GRPC GRPC
RMQ RMQ
NATS NATS
JWT JWT
Metrics Metrics
Swagger Swagger
}
Config -.
type HTTP ¶
type HTTP struct {
Port string `env:"HTTP_PORT,required"`
UsePreforkMode bool `env:"HTTP_USE_PREFORK_MODE" envDefault:"false"`
}
HTTP -.
type JWT ¶ added in v1.16.0
type JWT struct {
Secret string `env:"JWT_SECRET,required"`
TokenExpiry time.Duration `env:"JWT_TOKEN_EXPIRY" envDefault:"24h"`
}
JWT -.
type Metrics ¶ added in v1.9.0
type Metrics struct {
Enabled bool `env:"METRICS_ENABLED" envDefault:"true"`
}
Metrics -.
type NATS ¶ added in v1.14.0
type NATS struct {
ServerExchange string `env:"NATS_RPC_SERVER,required"`
URL string `env:"NATS_URL,required"`
}
NATS -.
Click to show internal directories.
Click to hide internal directories.