Versions in this module Expand all Collapse all v0 v0.0.4 Feb 6, 2019 Changes in this version + func NewHttpsListener(address string, domains ...string) net.Listener v0.0.3 Jan 27, 2019 Changes in this version + var TDummy = reflect.TypeOf(DummyTool{}) + var TGin = reflect.TypeOf(GinTool{}) + var TGorm = reflect.TypeOf(GormTool{}) + var TLogrus = reflect.TypeOf(LogrusTool{}) + var TRedis = reflect.TypeOf(RedisTool{}) + type DummyConfig struct + Debug bool + type DummyTool struct + func (t *DummyTool) Configure(config ...interface{}) + func (t *DummyTool) Dependencies() []reflect.Type + func (t *DummyTool) Start(belt IBelt) + func (t *DummyTool) Stop(belt IBelt) + type GinConfig struct + Debug bool + HttpAddr string + HttpsAddr string + HttpsDomain string + MaxClients uint + Timeout time.Duration + type GinTool struct + func (t *GinTool) Configure(config ...interface{}) + func (t *GinTool) Dependencies() []reflect.Type + func (t *GinTool) Start(belt IBelt) + func (t *GinTool) Stop(belt IBelt) + type GormConfig struct + DbMaxIdleConns uint + DbMaxOpenConns uint + Debug bool + Dialect string + Url string + type GormTool struct + func (t *GormTool) Configure(config ...interface{}) + func (t *GormTool) Dependencies() []reflect.Type + func (t *GormTool) Start(belt IBelt) + func (t *GormTool) Stop(belt IBelt) + type IBelt interface + Serve func() + Shutdown func() + Tool func(toolType reflect.Type, config ...interface{}) ITool + func NewBelt(configFileName string) IBelt + type ITool interface + Configure func(config ...interface{}) + Dependencies func() []reflect.Type + Start func(belt IBelt) + Stop func(belt IBelt) + type LogrusConfig struct + Email string + Filename string + Level string + MaxAge uint + MaxBackups uint64 + MaxSize uint64 + SmtpAddress string + SmtpFrom string + SmtpPassword string + SmtpUsername string + type LogrusTool struct + func (t *LogrusTool) Configure(config ...interface{}) + func (t *LogrusTool) Dependencies() []reflect.Type + func (t *LogrusTool) Start(belt IBelt) + func (t *LogrusTool) Stop(belt IBelt) + type RedisConfig struct + Auth string + DbIndex uint + Debug bool + PoolSize uint + Url string + type RedisTool struct + func (t *RedisTool) Configure(config ...interface{}) + func (t *RedisTool) Dependencies() []reflect.Type + func (t *RedisTool) Start(belt IBelt) + func (t *RedisTool) Stop(belt IBelt)