示例#1
0
文件: tcp_test.go 项目: jarpy/beats
func init() {
	new := func(_ bool, _ publish.Transactions, _ *ucfg.Config) (protos.Plugin, error) {
		return &TestProtocol{}, nil
	}

	protos.Register("httpTest", new)
	protos.Register("mysqlTest", new)
	protos.Register("redisTest", new)

	httpProtocol = protos.Lookup("httpTest")
	redisProtocol = protos.Lookup("redisTest")
	mysqlProtocol = protos.Lookup("mysqlTest")
}
示例#2
0
func init() {
	protos.Register("cassandra", New)
}
示例#3
0
func init() {
	protos.Register("amqp", New)
}
示例#4
0
文件: dns.go 项目: ChongFeng/beats
func init() {
	protos.Register("dns", New)
}
示例#5
0
文件: thrift.go 项目: ruflin/beats
func init() {
	protos.Register("thrift", New)
}
示例#6
0
func init() {
	protos.Register("memcache", New)
}
示例#7
0
文件: pgsql.go 项目: ChongFeng/beats
func init() {
	protos.Register("pgsql", New)
}
示例#8
0
文件: mongodb.go 项目: jarpy/beats
func init() {
	protos.Register("mongodb", New)
}
示例#9
0
文件: http.go 项目: urso/beats
func init() {
	protos.Register("http", New)
}
示例#10
0
文件: redis.go 项目: andrewkroh/beats
func init() {
	protos.Register("redis", New)
}
示例#11
0
func init() {
	protos.Register("{{ cookiecutter.module }}", New)
}