Documentation
¶
Index ¶
- type Config
- type LogConfig
- type OpenAPIConfig
- type RecoveryConfig
- type Section
- func (s Section) Get(key string) string
- func (s Section) GetBool(key string) bool
- func (s Section) GetBoolDefault(key string, defaultValue bool) bool
- func (s Section) GetDuration(key string) time.Duration
- func (s Section) GetDurationDefault(key string, defaultValue time.Duration) time.Duration
- func (s Section) GetFloat(key string) float64
- func (s Section) GetFloat64(key string) float64
- func (s Section) GetFloat64Default(key string, defaultValue float64) float64
- func (s Section) GetFloatDefault(key string, defaultValue float64) float64
- func (s Section) GetInt(key string) int
- func (s Section) GetInt64(key string) int64
- func (s Section) GetInt64Default(key string, defaultValue int64) int64
- func (s Section) GetIntDefault(key string, defaultValue int) int
- func (s Section) GetString(key string) string
- func (s Section) GetStringDefault(key string, defaultValue string) string
- func (s Section) GetStrings(key string) []string
- func (s Section) GetStringsDefault(key string, defaultValue []string) []string
- func (s Section) Has(key string) bool
- func (s Section) MustGet(key string) string
- func (s Section) Raw(key string) any
- func (s Section) Sub(key string) *Section
- func (s *Section) UnmarshalYAML(node *yaml.Node) error
- type ServerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ProjectDir string `yaml:"project_dir"`
Server ServerConfig
Log LogConfig
Recovery RecoveryConfig `yaml:"recovery"`
OpenAPI OpenAPIConfig `yaml:"openapi"`
Middlewares map[string]Section `yaml:"middlewares"`
}
type OpenAPIConfig ¶
type RecoveryConfig ¶
type Section ¶
type Section struct {
// contains filtered or unexported fields
}
func NewSection ¶
func (Section) GetDurationDefault ¶
func (Section) GetFloat64 ¶
func (Section) GetFloat64Default ¶
func (Section) GetFloatDefault ¶
func (Section) GetInt64Default ¶
func (Section) GetStringDefault ¶
func (Section) GetStrings ¶
func (Section) GetStringsDefault ¶
type ServerConfig ¶
Click to show internal directories.
Click to hide internal directories.