Documentation
¶
Index ¶
- Variables
- func WrapTimerDaemon(daemon TimerDaemon) kkdaemon.Daemon
- type DefaultTimerDaemon
- func (d *DefaultTimerDaemon) FireLoopAtStart() bool
- func (d *DefaultTimerDaemon) Init() error
- func (d *DefaultTimerDaemon) Interval() time.Duration
- func (d *DefaultTimerDaemon) IsStopped() bool
- func (d *DefaultTimerDaemon) Loop() error
- func (d *DefaultTimerDaemon) LoopStop(sig os.Signal)
- func (d *DefaultTimerDaemon) SetStopped()
- type LoopExample
- type SetupDatabase
- type SetupEnvironment
- type SetupHttpSession
- type SetupLaunchService
- type SetupLogger
- type SetupProfiler
- type SetupRedis
- type SetupStdoutCatch
- type SetupUpDown
- type TimerDaemon
- type TimerDaemonSetStopped
Constants ¶
This section is empty.
Variables ¶
View Source
var DaemonLoopExample = WrapTimerDaemon(new(LoopExample))
View Source
var DaemonSetupDatabase = &SetupDatabase{}
View Source
var DaemonSetupEnvironment = &SetupEnvironment{}
View Source
var DaemonSetupHttpSession = &SetupHttpSession{}
View Source
var DaemonSetupLaunchService = &SetupLaunchService{}
View Source
var DaemonSetupLogger = &SetupLogger{}
View Source
var DaemonSetupProfiler = &SetupProfiler{}
View Source
var DaemonSetupRedis = &SetupRedis{}
View Source
var DaemonSetupStdoutCatch = &SetupStdoutCatch{}
View Source
var DaemonSetupUpDown = &SetupUpDown{}
Functions ¶
func WrapTimerDaemon ¶
func WrapTimerDaemon(daemon TimerDaemon) kkdaemon.Daemon
Types ¶
type DefaultTimerDaemon ¶
type DefaultTimerDaemon struct {
// contains filtered or unexported fields
}
func (*DefaultTimerDaemon) FireLoopAtStart ¶
func (d *DefaultTimerDaemon) FireLoopAtStart() bool
func (*DefaultTimerDaemon) Init ¶
func (d *DefaultTimerDaemon) Init() error
func (*DefaultTimerDaemon) Interval ¶
func (d *DefaultTimerDaemon) Interval() time.Duration
func (*DefaultTimerDaemon) IsStopped ¶
func (d *DefaultTimerDaemon) IsStopped() bool
func (*DefaultTimerDaemon) Loop ¶
func (d *DefaultTimerDaemon) Loop() error
func (*DefaultTimerDaemon) LoopStop ¶
func (d *DefaultTimerDaemon) LoopStop(sig os.Signal)
func (*DefaultTimerDaemon) SetStopped ¶
func (d *DefaultTimerDaemon) SetStopped()
type LoopExample ¶
type LoopExample struct {
DefaultTimerDaemon
}
func (*LoopExample) Interval ¶
func (d *LoopExample) Interval() time.Duration
func (*LoopExample) Loop ¶
func (d *LoopExample) Loop() error
type SetupDatabase ¶
type SetupDatabase struct {
kkdaemon.DefaultDaemon
}
func (*SetupDatabase) Start ¶
func (d *SetupDatabase) Start()
type SetupEnvironment ¶
type SetupEnvironment struct {
kkdaemon.DefaultDaemon
}
func (*SetupEnvironment) Start ¶
func (d *SetupEnvironment) Start()
type SetupHttpSession ¶
type SetupHttpSession struct {
kkdaemon.DefaultDaemon
}
func (*SetupHttpSession) Start ¶
func (d *SetupHttpSession) Start()
type SetupLaunchService ¶
type SetupLaunchService struct {
kkdaemon.DefaultDaemon
}
func (*SetupLaunchService) Start ¶
func (d *SetupLaunchService) Start()
func (*SetupLaunchService) Stop ¶
func (d *SetupLaunchService) Stop(sig os.Signal)
type SetupLogger ¶
type SetupLogger struct {
kkdaemon.DefaultDaemon
}
func (*SetupLogger) Start ¶
func (d *SetupLogger) Start()
type SetupProfiler ¶
type SetupProfiler struct {
kkdaemon.DefaultDaemon
}
func (*SetupProfiler) Start ¶
func (d *SetupProfiler) Start()
type SetupRedis ¶
type SetupRedis struct {
kkdaemon.DefaultDaemon
}
func (*SetupRedis) Start ¶
func (d *SetupRedis) Start()
type SetupStdoutCatch ¶
type SetupStdoutCatch struct {
kkdaemon.DefaultDaemon
}
func (*SetupStdoutCatch) Start ¶
func (d *SetupStdoutCatch) Start()
type SetupUpDown ¶
type SetupUpDown struct {
kkdaemon.DefaultDaemon
}
func (*SetupUpDown) Start ¶
func (d *SetupUpDown) Start()
func (*SetupUpDown) Stop ¶
func (d *SetupUpDown) Stop(sig os.Signal)
type TimerDaemon ¶
type TimerDaemonSetStopped ¶
type TimerDaemonSetStopped interface {
SetStopped()
}
Click to show internal directories.
Click to hide internal directories.