package
Version:
v0.0.0-...-1d5bf40
Opens a new window with list of versions in this module.
Published: May 20, 2024
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type App struct {
GRPC GRPC `mapstructure:"grpc"`
Log Log `mapstructure:"log"`
Redis Redis `mapstructure:"redis"`
DB dbx.Options `mapstructure:"db"`
Version string `mapstructure:"_"`
BuildTime string `mapstructure:"_"`
}
type GRPC struct {
Address string `mapstructure:"address"`
MaxRecv int `mapstructure:"maxRecv"`
MaxSend int `mapstructure:"maxSend"`
ReadBuffer int `mapstructure:"readBuffer"`
WriteBuffer int `mapstructure:"writeBuffer"`
TLS struct {
Cert string `mapstructure:"cert"`
Key string `mapstructure:"key"`
} `mapstructure:"tls"`
}
type Log struct {
Filename string `mapstructure:"filename"`
Prompt string `mapstructure:"-"`
Level slog.Level `mapstructure:"level"`
Format string `mapstructure:"format"`
Source bool `mapstructure:"source"`
Color bool `mapstructure:"color"`
}
type Redis struct {
Address string `mapstructure:"address"`
Password string `mapstructure:"password"`
WriteTimeout time.Duration `mapstructure:"writeTimeout"`
ReadTimeout time.Duration `mapstructure:"readTimeout"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.