loki_server

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicAuth

type BasicAuth struct {
	Username string
	Password string
}

type ClientOpts

type ClientOpts struct {
	BasicAuth *BasicAuth
}

type LogServer

type LogServer *fiber.App

type LokiClient

type LokiClient interface {
	Ping(ctx context.Context) error
	Tail(streamSelectors []StreamSelector, filter *string, startTime, endTime *time.Time, limitLength *int, connection *fWebsocket.Conn) error
	Close()
}

func NewLokiClient

func NewLokiClient(httpAddr string, opts ClientOpts) (LokiClient, error)

type LokiClientOptions

type LokiClientOptions interface {
	GetLokiServerUrlAndOptions() (string, ClientOpts)
	GetLogServerPort() uint64
}

type StreamSelector

type StreamSelector struct {
	Key       string
	Value     string
	Operation string
}

Jump to

Keyboard shortcuts

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