示例#1
0
func main() {
	log.Println("docker2lambda monitor begin...")

	// Begin monitoring Docker Event
	lambdaSink := d2k.EventLoop(nil, 100)

	// Start driving docker events to AWS lambda function
	LambdaLoop(lambdaSink, d2k.DefaultCallBack)
}
示例#2
0
func main() {
	log.Print("docker2kinesis monitor begin...")

	// Begin monitoring Docker Event
	ksisSink := d2k.EventLoop(nil, 100)

	// Start driving docker events to AWS kinesis
	KinesisLoop(ksisSink, d2k.DefaultCallBack)
}