Documentation ¶ Index ¶ func Get(conf any, sources ...Src) error type Common func (c *Common) Validate() error type Redis type Src func Path(path string) Src func Reader(reader io.Reader, name string) Src Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Get ¶ func Get(conf any, sources ...Src) error Types ¶ type Common ¶ type Common struct { Log *log.Config `yaml:"log,omitempty"` Trace *trace.Config `yaml:"trace,omitempty"` Metrics *metrics.Config `yaml:"metrics,omitempty"` Redis *Redis `yaml:"redis,omitempty"` Features *features.Config `yaml:"features,omitempty"` } func (*Common) Validate ¶ func (c *Common) Validate() error type Redis ¶ type Redis struct { Address string `yaml:"address"` Password string `yaml:"password"` MetaDB int `yaml:"metaDB"` QueueDB int `yaml:"queueDB"` LockDB int `yaml:"lockDB"` ConfigDB int `yaml:"configDB"` } type Src ¶ type Src interface { // contains filtered or unexported methods } func Path ¶ func Path(path string) Src func Reader ¶ func Reader(reader io.Reader, name string) Src Source Files ¶ View all Source files config.go Click to show internal directories. Click to hide internal directories.