Documentation ¶
Overview ¶
Package control 控制插件的启用与优先级等
Index ¶
- func Delete(service string)
- func ForEach(iterator func(key string, manager *Control) bool)
- func Register(service string, o *Options) *zero.Engine
- type Control
- func (m *Control) Disable(groupID int64)
- func (m *Control) Enable(groupID int64)
- func (m *Control) GetData(gid int64) int64
- func (m *Control) Handler() zero.Rule
- func (m *Control) IsEnabledIn(gid int64) bool
- func (m *Control) Reset(groupID int64)
- func (m *Control) SetData(groupID int64, data int64) error
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Control ¶
Control is to control the plugins.
func (*Control) Disable ¶
Disable disables a group to pass the Manager. groupID == 0 (ALL) will operate on all grps.
func (*Control) Enable ¶
Enable enables a group to pass the Manager. groupID == 0 (ALL) will operate on all grps.
Click to show internal directories.
Click to hide internal directories.