logdb

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INFLUXDB_DATABASE = "fissionFunctionLog"
	INFLUXDB_URL      = "http://influxdb:8086/query"
)
View Source
const (
	INFLUXDB = "influxdb"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type InfluxDB

type InfluxDB struct {
	// contains filtered or unexported fields
}

func NewInfluxDB

func NewInfluxDB(serverURL string) (InfluxDB, error)

func (InfluxDB) GetLogs

func (influx InfluxDB) GetLogs(filter LogFilter) ([]LogEntry, error)

func (InfluxDB) GetPods

func (influx InfluxDB) GetPods(filter LogFilter) ([]string, error)

type LogDatabase

type LogDatabase interface {
	GetPods(LogFilter) ([]string, error)
	GetLogs(LogFilter) ([]LogEntry, error)
}

func GetLogDB

func GetLogDB(dbType string, serverURL string) (LogDatabase, error)

type LogEntry

type LogEntry struct {
	Timestamp time.Time
	Message   string
	Stream    string
	Container string
	Namespace string
	FuncName  string
	FuncUid   string
	Pod       string
}

type LogFilter

type LogFilter struct {
	Pod      string
	Function string
	FuncUid  string
	Since    time.Time
}

Jump to

Keyboard shortcuts

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