Documentation
¶
Index ¶
- Variables
- func Cleanup()
- func NewHPTailer(parser Parser, logFileToTail string) (*tailer, error)
- func Parse(logRow string) (string, error)
- func Send(message string) error
- func SetupParser(p Parser)
- func SetupService(s Stash)
- func SetupTail(t Tail)
- func Start()
- func WireUp(c *cli.Context) error
- type Flag
- type Parser
- type Stash
- type Tail
Constants ¶
This section is empty.
Variables ¶
View Source
var BQFlags = map[string]Flag{ "project": Flag{ Name: "project", ShortName: "p", Usage: "`project name`", }, "dataset": Flag{ Name: "dataset", ShortName: "d", Usage: "`Name of dataset to ship to`", }, "table": Flag{ Name: "table", ShortName: "t", Usage: "`Name of table to ship to`", }, "serviceaccount": Flag{ Name: "serviceaccount", ShortName: "s", Usage: "`path to json file with service account credentials`", }, }
BQFlags defines the subcomands for bigquery
View Source
var InfluxFlags = map[string]Flag{ "database": Flag{ Name: "database", ShortName: "d", Usage: "`Name of database to ship to`", }, "serie": Flag{ Name: "serie", ShortName: "s", Usage: "`Name of time serie to ship to`", }, "connection": Flag{ Name: "connection", ShortName: "c", Usage: "`Connection string to influx DB`", }, }
Functions ¶
func NewHPTailer ¶
func SetupParser ¶
func SetupParser(p Parser)
func SetupService ¶
func SetupService(s Stash)
Types ¶
type Stash ¶
func NewBqService ¶
NewBqService conects to BigQuery and returns a new Stash with configuration
func NewInfluxService ¶
NewInfluxService conects to influxDB and returns a new Stash
Click to show internal directories.
Click to hide internal directories.