scops

command module
v0.0.0-...-5f94e38 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

README

scops

Regularly reads a database and then send Ara External Model structures with Protocol Buffers

Run

To run, this app needs a plugin.

scops -plugin path/to/plugin.so

A make command exists to fetch a plugin from the enroute-mobi bitbucket repositories:

make run PLUGIN=example

Plugin

The plugin must have a Feeder object that respond to this interface:

type Feeder interface {
	DbConnect() *dbr.Session
	GetCompleteModel(sess *dbr.Session) (*external_models.ExternalCompleteModel, error)
}
Dependency

Scops and the plugings database access needs to use the dbr library.

Options

All options can be either specified with an environment variable (SCOPS_VARIABLE=value) or via command line (-variable value).

debug: Boolean, enable debug messages

syslog: Boolean, redirect messages to syslog

gzip: Boolean, gzip requests

remote: Remote URL to send messages to

token: Authorization token (Authorization: Token token=secret in the request header)

plugin: Path to the plugin to use to get the data

cycle: Cycle duration (accepts a value acceptable to time.ParseDuration, ex: '60s')

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL