datasource

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	S3    = "s3"
	Local = "local"
	Fake  = "fake"
)

Variables

This section is empty.

Functions

func NewFakeID

func NewFakeID() string

Types

type Datasource

type Datasource interface {
	Fetch(context.Context) <-chan *LogEvent
	Err() error
}

type LogEvent

type LogEvent struct {
	ID        string
	Timestamp time.Time
	Message   string
	Raw       string
}

func (LogEvent) MarshalJSON

func (e LogEvent) MarshalJSON() ([]byte, error)

func (*LogEvent) UnmarshalJSON

func (e *LogEvent) UnmarshalJSON(b []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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