fetcher

package
v0.22.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Execution

type Execution struct {
	Logs   []LogEntry       `json:"logs"`
	Report *receiver.Report `json:"report"`
}

Execution represents a response from remote receiver service and local logs that were received.

type Fetcher

type Fetcher interface {
	FetchReport()
}

Fetcher will fetch a report from remote receiver service.

func New

func New() Fetcher

New will create a new fetcher

type LogEntry

type LogEntry struct {
	Level    string    `json:"level"`
	Datetime time.Time `json:"dt"`
	Message  string    `json:"msg"`
}

LogEntry represents a single

Jump to

Keyboard shortcuts

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