Documentation
¶
Index ¶
Constants ¶
View Source
const ( FLUME_PATH = "/flume" FLUME_SOURCE_PATH_PID = "/flume_source" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostPort ¶
func NewHostPort ¶
type IWatcher ¶
type IWatcher interface { BusinessWatcher(business string, eventType ZkEvent) ChildWatcher(business string, childNode []HostPort) }
每个watcher
type Option ¶
type Option struct { LogPath string Businesses []string Zkhost string //zookeeper的Host QueueHostPorts []QueueHostPort //redis队列Pop IsCompress bool //是否对数据进行压缩 }
启动设置的选项
type QueueHostPort ¶
type ZKManager ¶
type ZKManager struct {
// contains filtered or unexported fields
}
func NewZKManager ¶
func (*ZKManager) DecodeNode ¶
func (*ZKManager) GetAndWatch ¶
func (*ZKManager) RegistePath ¶
注册当前进程节点
Click to show internal directories.
Click to hide internal directories.