Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConf = conf{ TickDuration: time.Second, InitStrategy: InitAtLeastOnce, ErrorHandler: func(err error) {}, ProcPrinter: func(w Minion, str string, round int64) {}, }
Functions ¶
This section is empty.
Types ¶
type InitStrategy ¶
type InitStrategy byte
const ( InitAtLeastOnce InitStrategy = 0 InitAsync InitStrategy = 1 )
type Option ¶
type Option func(c conf) conf
func WithErrorHandler ¶
func WithInitStrategy ¶
func WithInitStrategy(strategy InitStrategy) Option
func WithTickDuration ¶
Click to show internal directories.
Click to hide internal directories.