Versions in this module Expand all Collapse all v1 v1.1.8 Sep 11, 2020 Changes in this version + const ExitCodeHandlerError + const ExitCodeInvalidConfig + const ExitCodeInvalidHandler + const ExitCodeOK + func AddClient(section string, handler Handler) + func AddServer(section string, handler Handler) + func LoadConfig(section string, v interface{}) + func LoadConfigFile(path string, section string, v interface{}) + func Main() + func OnExit(handler func(ctx context.Context)) + func OnStart(handler func(ctx context.Context) error) + func WithStats(ctx context.Context, stats *Stats) context.Context + type Handler interface + type MetaInfo struct + Env string + GitRefName string + GitRevision string + Namespace string + Project string + Type string + func Meta() *MetaInfo + type Stats struct + func StatsFromContext(ctx context.Context) *Stats + func (stats *Stats) Add(key string, value int) + func (stats *Stats) Info() []log.Info + func (stats *Stats) Set(key string, value int)