Documentation ¶
Index ¶
Constants ¶
View Source
const ( SwitchOpen = "true" SwitchClose = "false" )
Variables ¶
View Source
var ( ErrConflictSwitch = errors.New("switch has existed") ErrNoSuchSwitch = errors.New("no such switch") )
Functions ¶
This section is empty.
Types ¶
type ConfigGetter ¶
type SwitchMgr ¶
type SwitchMgr struct {
// contains filtered or unexported fields
}
func NewSwitchMgr ¶
func NewSwitchMgr(cmCli ConfigGetter) *SwitchMgr
type TaskSwitch ¶
type TaskSwitch struct {
// contains filtered or unexported fields
}
func NewEnabledTaskSwitch ¶
func NewEnabledTaskSwitch() *TaskSwitch
func (*TaskSwitch) Disable ¶
func (s *TaskSwitch) Disable()
func (*TaskSwitch) Enable ¶
func (s *TaskSwitch) Enable()
func (*TaskSwitch) Enabled ¶
func (s *TaskSwitch) Enabled() bool
func (*TaskSwitch) WaitEnable ¶
func (s *TaskSwitch) WaitEnable()
Click to show internal directories.
Click to hide internal directories.