daemons

package
v1.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

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 TimerDaemon interface {
	Init() error
	FireLoopAtStart() bool
	Interval() time.Duration
	Loop() error
	LoopStop(sig os.Signal)
	IsStopped() bool
}

type TimerDaemonSetStopped

type TimerDaemonSetStopped interface {
	SetStopped()
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL