Versions in this module Expand all Collapse all v0 v0.9.0 Oct 20, 2021retracted Changes in this version + var ErrNotEnabled = errors.New("module is not enabled") + func Close() + func GetStats() map[string]interface + func Register(cfg *config.Config, httpMux *mux.Router, factories []Factory) error + func RestartModule(factory Factory) error + type Factory struct + Fn func(cfg *config.Config) (Module, error) + Name config.ModuleName + type Module interface + Close func() + GetStats func() map[string]interface{} + Register func(*Router) error + type Router struct + func NewRouter(mux *mux.Router) *Router + func (r *Router) HandleFunc(path string, responseWriter func(http.ResponseWriter, *http.Request)) *mux.Route