Documentation
¶
Overview ¶
Package config provides configuration for the application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Version string `koanf:"-"`
Filename string `koanf:"-"`
Log *Log `koanf:"log"`
Uncountables []string `koanf:"uncountables"`
Initialisms []string `koanf:"initialisms"`
Timezone string `koanf:"timezone"`
Template *Template `koanf:"template"`
Imports []*Import `koanf:"imports"`
Output *Output `koanf:"output"`
Custom []*CustomStruct `koanf:"custom"`
DB []*DB `koanf:"db"`
}
type CustomField ¶
type CustomField struct {
Name string `koanf:"name"`
Type string `koanf:"type"`
Tags []*Tag `koanf:"tags"`
Comment string `koanf:"comment"`
}
func (*CustomField) Validate ¶
func (c *CustomField) Validate() error
type CustomStruct ¶
type CustomStruct struct {
Name string `koanf:"name"`
Comment string `koanf:"comment"`
Fields []*CustomField `koanf:"fields"`
Tags []*Tag `koanf:"tags"`
}
func (*CustomStruct) Validate ¶
func (c *CustomStruct) Validate() error
type CustomTable ¶
type CustomTable struct {
Name string `koanf:"table"`
Alias string `koanf:"alias"`
Comment string `koanf:"comment"`
Fields map[string]*CustomField `koanf:"fields"`
Tags []*Tag `koanf:"tags"`
}
func (*CustomTable) Validate ¶
func (c *CustomTable) Validate() error
type DB ¶
type Import ¶
type Output ¶
Click to show internal directories.
Click to hide internal directories.