Documentation ¶
Index ¶
- Variables
- type Master
- type Option
- func OptionDefaultLoggerLogLevel(l log.Level) Option
- func OptionHeartBeatMultiplier(m int) Option
- func OptionHeartbeat(h time.Duration) Option
- func OptionLogger(l log.Logger) Option
- func OptionMasterEndHook(f func(epoch uint64)) Option
- func OptionMasterStartHook(f func(epoch uint64)) Option
- func OptionVersion(version string) Option
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMasterIsStarted = errors.New("master is started before") ErrMasterHasNotStarted = errors.New("master has not started") )
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func OptionHeartbeat ¶
func OptionLogger ¶
func OptionMasterEndHook ¶
func OptionMasterStartHook ¶
func OptionVersion ¶
Click to show internal directories.
Click to hide internal directories.