loki

package
v0.0.0-...-35a4376 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicAuthClient

func BasicAuthClient(username, password string) *http.Client

Types

type Loki

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

func NewLoki

func NewLoki(address string, streamMetadata StreamMetadata, client *http.Client) *Loki

func (Loki) Write

func (l Loki) Write(p []byte) (n int, err error)

type StreamMetadata

type StreamMetadata map[string]any

func DefaultStreamMetadata

func DefaultStreamMetadata(host, stream, applicationName, job, tag string) StreamMetadata

Jump to

Keyboard shortcuts

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