Versions in this module Expand all Collapse all v1 v1.0.1 Jan 21, 2025 Changes in this version + type CAFile struct + CertFile string + KeyFile string + type Conf struct + Account map[string]string + Addr string + Auth bool + CAFile *CAFile + CachePath string + HttpDir string + IdleTimeout time.Duration + ReadHeaderTimeout time.Duration + ResourceRootPath string + StaticDir string + func (c *Conf) GetHttpDir() string + func (c *Conf) GetStaticDir() string + type HttpModule struct + func NewHttpModule(conf *Conf, logger log.ILogger, systemMod string) *HttpModule + func (hs *HttpModule) OnInit() error + func (hs *HttpModule) OnRelease() + func (hs *HttpModule) OnStart() error + func (hs *HttpModule) SetRouter(router *router_center.GroupHandlerPool) *HttpModule + func (hs *HttpModule) WithInitHook(hook func()) *HttpModule + func (hs *HttpModule) WithRunHook(hook func()) *HttpModule + func (hs *HttpModule) WithStopHook(hook func()) *HttpModule