Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 629 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 629 Bytes

Simple agent

This application demonstrates how easily a set of CN-infra based plugins can be turned into an application.

Usage

To run the example, simply type:

go run agent.go [-kafka-config <config-filepath>] [-etcd-config <config-filepath>] \
 [-cassandra-config <config-filepath>] [-redis-config <config-filepath>]

All four data sources (kafka, etcd, redis, cassandra) are optional. If a particular config file path is left unspecified, the application will first try to look for the default configuration filename in the current working directory before skipping the initialization of the associated plugin.