Documentation ¶
Index ¶
- Constants
- func Boot(opts ...Option)
- func RegisterCfg(name string, cfg interface{})
- func RegisterSvc(typ SvcType, creator plugin.Creator, cfgCreator plugin.CfgCreator)
- type Booter
- type Option
- func CfgPath(cfgPath string) Option
- func DefaultLogCompress(compress bool) Option
- func DefaultLogEncoding(encoding string) Option
- func DefaultLogMaxAge(maxAge int) Option
- func DefaultLogMaxBackups(maxBackups int) Option
- func DefaultLogMaxFileSize(maxSize int) Option
- func DefaultLogPath(logPath string) Option
- func EnvPrefix(envPrefix string) Option
- type Svc
- type SvcType
Constants ¶
View Source
const ENV_CFG_PATH = "CFG_PATH"
Variables ¶
This section is empty.
Functions ¶
func RegisterCfg ¶ added in v0.1.9
func RegisterCfg(name string, cfg interface{})
RegisterCfg register additional config, cfg type must be pointer.
func RegisterSvc ¶
func RegisterSvc(typ SvcType, creator plugin.Creator, cfgCreator plugin.CfgCreator)
RegisterSvc register a Svc creator and its config creator.
Types ¶
type Booter ¶ added in v0.0.3
func (*Booter) OnChildDone ¶ added in v0.0.3
type Option ¶ added in v0.2.6
type Option interface {
// contains filtered or unexported methods
}
func DefaultLogCompress ¶ added in v0.3.9
func DefaultLogEncoding ¶ added in v0.3.9
func DefaultLogMaxAge ¶ added in v0.3.9
func DefaultLogMaxBackups ¶ added in v0.3.9
func DefaultLogMaxFileSize ¶ added in v0.3.9
func DefaultLogPath ¶ added in v0.3.9
Click to show internal directories.
Click to hide internal directories.