logdb

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: Apache-2.0 Imports: 12 Imported by: 1

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 ByTimestampSort added in v1.13.0

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

func ByTimestamp added in v1.13.0

func ByTimestamp(entries []LogEntry, desc bool) ByTimestampSort

func (ByTimestampSort) Len added in v1.13.0

func (a ByTimestampSort) Len() int

func (ByTimestampSort) Less added in v1.13.0

func (a ByTimestampSort) Less(i, j int) bool

func (ByTimestampSort) Swap added in v1.13.0

func (a ByTimestampSort) Swap(i, j int)

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