Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ZkCustomRule ¶
type ZkCustomRule struct {
// contains filtered or unexported fields
}
ZkCustomRule is Zookeeper backed implementation of CustomRuleManager
func NewZkCustomRule ¶
func NewZkCustomRule(server, path string) *ZkCustomRule
NewZkCustomRule Creates new ZkCustomRule structure
func (*ZkCustomRule) GetRules ¶
func (zkcr *ZkCustomRule) GetRules() (qrs *rules.Rules, version int64, err error)
GetRules retrives cached rules.
func (*ZkCustomRule) Start ¶
func (zkcr *ZkCustomRule) Start(qsc tabletserver.Controller) (err error)
Start registers Zookeeper watch, gets inital Rules and starts polling routine.
func (*ZkCustomRule) Stop ¶
func (zkcr *ZkCustomRule) Stop()
Stop signals a termination to polling go routine and closes Zookeeper connection object.
Click to show internal directories.
Click to hide internal directories.