示例#1
0
func init() {
	output.Register("elasticsearch", &ESServer{
		host: fmt.Sprintf("%s:%d", defaultHost, time.Now().Unix()),
		term: make(chan bool, 1),
	})
}
示例#2
0
func init() {
	output.Register("websocket", &WebSocketServer{
		logs: make(map[string]time.Time),
		term: make(chan bool, 1),
	})
}
示例#3
0
文件: tcp.go 项目: stanhu/logslam
func init() {
	output.Register("tcp", &TCPServer{
		term: make(chan bool, 1),
	})
}