logdb

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INFLUXDB_DATABASE = "kubefaasFunctionLog"
	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)

type LogDatabase

type LogDatabase interface {
	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
	Sequence  int
	Container string
	Namespace string
	FuncName  string
	FuncUid   string
	Pod       string
}

type LogFilter

type LogFilter struct {
	Pod         string
	Function    string
	FuncUid     string
	Since       time.Time
	Reverse     bool
	RecordLimit int
}

Jump to

Keyboard shortcuts

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