Documentation ¶
Index ¶
Constants ¶
View Source
const ( EID_PREFIX = "peer@" CONF_ID_PREFIX = "server." ZOOKEEPER_LINE_RE = `` /* 139-byte string literal not displayed */ TAG_ID_RE = `^(?P<context>[a-zA-Z_\.\$]+):(?P<id>\d+)$` TAG_HOST_RE = `^(?P<context>[a-zA-Z_\.\-\$]+):?(?P<source>[^/]*)/(?P<host>[^:]+):(?P<port>\d+)$` )
Variables ¶
This section is empty.
Functions ¶
func ParseEnsembleFile ¶
Types ¶
type EventFilterConfig ¶
type LogTailPlugin ¶
type LogTailPlugin interface { ProvideFlags() *flag.FlagSet ValidateFlags() error Init() error ProvideEventParser() dt.EventParser ProvideObserverModule() dt.ObserverModule }
type ZooKeeperEventParser ¶
type ZooKeeperEventParser struct { EntityIdPrefix string EIdAddrMap map[string]string AddrEIdMap map[string]string FilterTree dt.FieldFilterTree }
func NewZooKeeperEventParser ¶
func NewZooKeeperEventParser(idprefix string, ensemble []zkserver, config *dt.FieldFilterTreeConfig) (*ZooKeeperEventParser, error)
type ZooKeeperPlugin ¶
type ZooKeeperPlugin struct { Ensemble []zkserver MyId string FilterConfig *dt.FieldFilterTreeConfig Parser dt.EventParser }
func (*ZooKeeperPlugin) Init ¶
func (self *ZooKeeperPlugin) Init() error
func (*ZooKeeperPlugin) ProvideEventParser ¶
func (self *ZooKeeperPlugin) ProvideEventParser() dt.EventParser
func (*ZooKeeperPlugin) ProvideFlags ¶
func (self *ZooKeeperPlugin) ProvideFlags() *flag.FlagSet
func (*ZooKeeperPlugin) ProvideObserverModule ¶
func (self *ZooKeeperPlugin) ProvideObserverModule() dt.ObserverModule
func (*ZooKeeperPlugin) ValidateFlags ¶
func (self *ZooKeeperPlugin) ValidateFlags() error
Click to show internal directories.
Click to hide internal directories.