Skip to content

Latest commit

History

History
20 lines (16 loc) 路 747 Bytes

README.md

File metadata and controls

20 lines (16 loc) 路 747 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>] [-etcdv3-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. Default configuration file names for data sources can be found here.