loki

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loki

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

func (*Loki) Init

func (l *Loki) Init(c *config.Config) error

Init creates the loki configuration

func (*Loki) Send

func (l *Loki) Send(log string, metadata map[string]string)

func (*Loki) Stream

func (l *Loki) Stream(entry chan utils.LogEntry)

Stream sends the logs to Loki

type LokiDTO

type LokiDTO struct {
	Streams []Streams `json:"streams"`
}

type Streams

type Streams struct {
	Stream map[string]string `json:"stream"`
	Values [][]string        `json:"values"`
}

Jump to

Keyboard shortcuts

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