Directories ¶
Path | Synopsis |
---|---|
Package acomm is a library for asynchronous JSON-RPC-like communication between services.
|
Package acomm is a library for asynchronous JSON-RPC-like communication between services. |
cmd
|
|
bundle-heartbeat
Usage: Usage of ./bundle-heartbeat: -u, --clusterDataURL string url of coordinator for the cluster information -c, --configFile string path to config file -l, --logLevel string log level: debug/info/warn/error/fatal/panic (default "warning") -n, --nodeDataURL string url of coordinator for node information retrieval -r, --requestTimeout duration default timeout for external requests made -t, --tickInterval duration tick run frequency -i, --tickRetryInterval duration tick retry on error frequency Note: Long flag names can be specified in either fooBar or foo[_-.]bar form.
|
Usage: Usage of ./bundle-heartbeat: -u, --clusterDataURL string url of coordinator for the cluster information -c, --configFile string path to config file -l, --logLevel string log level: debug/info/warn/error/fatal/panic (default "warning") -n, --nodeDataURL string url of coordinator for node information retrieval -r, --requestTimeout duration default timeout for external requests made -t, --tickInterval duration tick run frequency -i, --tickRetryInterval duration tick retry on error frequency Note: Long flag names can be specified in either fooBar or foo[_-.]bar form. |
coordinator
Usage $ coordinator -h Usage of coordinator: -c, --config_file="": path to config file -p, --external_port=8080: port for the http external request server to listen -l, --log_level="warning": log level: debug/info/warn/error/fatal/panic -t, --request_timeout=0: default timeout for requests in seconds -n, --service_name="": name of the coordinator -s, --socket_dir="/tmp/cerana": base directory in which to create task sockets
|
Usage $ coordinator -h Usage of coordinator: -c, --config_file="": path to config file -p, --external_port=8080: port for the http external request server to listen -l, --log_level="warning": log level: debug/info/warn/error/fatal/panic -t, --request_timeout=0: default timeout for requests in seconds -n, --service_name="": name of the coordinator -s, --socket_dir="/tmp/cerana": base directory in which to create task sockets |
coordinator-cli
Usage $ ./coordinator-cli -h Usage of ./coordinator-cli: -c, --coordinator_url string url of the coordinator -r, --http_addr string address for http server to listen for responses and stream request data (default ":4080") -j, --json_args read a json args object form STDIN -a, --request_arg value task specific argument the form 'key=value'.
|
Usage $ ./coordinator-cli -h Usage of ./coordinator-cli: -c, --coordinator_url string url of the coordinator -r, --http_addr string address for http server to listen for responses and stream request data (default ":4080") -j, --json_args read a json args object form STDIN -a, --request_arg value task specific argument the form 'key=value'. |
dataset-heartbeat
Usage: $ dataset-heartbeat -h Usage of dataset-heartbeat: -u, --clusterDataURL string url of coordinator for the cluster information -c, --configFile string path to config file -a, --datasetPrefix string dataset directory -l, --logLevel string log level: debug/info/warn/error/fatal/panic (default "warning") -n, --nodeDataURL string url of coordinator for node information retrieval -r, --requestTimeout duration default timeout for external requests made -t, --tickInterval duration tick run frequency -i, --tickRetryInterval duration tick retry on error frequency Note: Long flag names can be specified in either fooBar or foo[_-.]bar form.
|
Usage: $ dataset-heartbeat -h Usage of dataset-heartbeat: -u, --clusterDataURL string url of coordinator for the cluster information -c, --configFile string path to config file -a, --datasetPrefix string dataset directory -l, --logLevel string log level: debug/info/warn/error/fatal/panic (default "warning") -n, --nodeDataURL string url of coordinator for node information retrieval -r, --requestTimeout duration default timeout for external requests made -t, --tickInterval duration tick run frequency -i, --tickRetryInterval duration tick retry on error frequency Note: Long flag names can be specified in either fooBar or foo[_-.]bar form. |
node-heartbeat
Usage: Usage of ./node-heartbeat: -u, --clusterDataURL string url of coordinator for the cluster information -c, --configFile string path to config file -l, --logLevel string log level: debug/info/warn/error/fatal/panic (default "warning") -n, --nodeDataURL string url of coordinator for node information retrieval -r, --requestTimeout duration default timeout for external requests made -t, --tickInterval duration tick run frequency -i, --tickRetryInterval duration tick retry on error frequency Note: Long flag names can be specified in either fooBar or foo[_-.]bar form.
|
Usage: Usage of ./node-heartbeat: -u, --clusterDataURL string url of coordinator for the cluster information -c, --configFile string path to config file -l, --logLevel string log level: debug/info/warn/error/fatal/panic (default "warning") -n, --nodeDataURL string url of coordinator for node information retrieval -r, --requestTimeout duration default timeout for external requests made -t, --tickInterval duration tick run frequency -i, --tickRetryInterval duration tick retry on error frequency Note: Long flag names can be specified in either fooBar or foo[_-.]bar form. |
service-provider
Usage $ service-provider -h Usage of service-provider: -c, --config_file string path to config file -u, --coordinator_url string url of coordinator for making requests -p, --default_priority uint default task priority (default 50) -l, --log_level string log level: debug/info/warn/error/fatal/panic (default "warning") -t, --request_timeout uint default timeout for requests made by this provider in seconds -n, --service_name string provider service name -s, --socket_dir string base directory in which to create task sockets (default "/tmp/cerana")
|
Usage $ service-provider -h Usage of service-provider: -c, --config_file string path to config file -u, --coordinator_url string url of coordinator for making requests -p, --default_priority uint default task priority (default 50) -l, --log_level string log level: debug/info/warn/error/fatal/panic (default "warning") -t, --request_timeout uint default timeout for requests made by this provider in seconds -n, --service_name string provider service name -s, --socket_dir string base directory in which to create task sockets (default "/tmp/cerana") |
Package coordinator is a request router and proxy, to be used with Providers.
|
Package coordinator is a request router and proxy, to be used with Providers. |
internal
|
|
tests/common
Package common contains common utilities and suites to be used in other tests
|
Package common contains common utilities and suites to be used in other tests |
pkg
|
|
errors
Package errors provides richer error handling functionality Errors created or wrapped include a stack trace, optional additional context messages, and optional additional relevant data.
|
Package errors provides richer error handling functionality Errors created or wrapped include a stack trace, optional additional context messages, and optional additional relevant data. |
errorutils
Package errorutils provides helper functions for dealing with errors.
|
Package errorutils provides helper functions for dealing with errors. |
kv
Package kv abstracts a distributed/clustered kv store for use with cerana kv does not aim to be a full-featured generic kv abstraction, but can be useful anyway.
|
Package kv abstracts a distributed/clustered kv store for use with cerana kv does not aim to be a full-featured generic kv abstraction, but can be useful anyway. |
logrusx
Package logrusx is a logrus formatter that adds better error value handling to the logrus.JSONFormatter
|
Package logrusx is a logrus formatter that adds better error value handling to the logrus.JSONFormatter |
Package provider is the framework for creating Providers.
|
Package provider is the framework for creating Providers. |
examples/simple
Package simple is a simple task provider proof of concept.
|
Package simple is a simple task provider proof of concept. |
examples/simple/cmd/provider-simple
Usage $ provider-simple -h Usage of provider-simple: -c, --config_file="": path to config file -p, --default_priority=50: default task priority -l, --log_level="warning": log level: debug/info/warn/error/fatal/panic -t, --request_timeout=0: default timeout for requests made by this provider in seconds -s, --socket_dir="/tmp/cerana": base directory in which to create task sockets
|
Usage $ provider-simple -h Usage of provider-simple: -c, --config_file="": path to config file -p, --default_priority=50: default task priority -l, --log_level="warning": log level: debug/info/warn/error/fatal/panic -t, --request_timeout=0: default timeout for requests made by this provider in seconds -s, --socket_dir="/tmp/cerana": base directory in which to create task sockets |
providers
|
|
Click to show internal directories.
Click to hide internal directories.