loki_client_go

package module
v0.0.0-...-8cfb0cc Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2022 License: MIT Imports: 7 Imported by: 1

README

loki-client-go

A GOLANG CLIENT TO SEND LOGS TO LOKI

Documentation

Index

Constants

View Source
const LogPushPath = "loki/api/v1/push"

Variables

This section is empty.

Functions

This section is empty.

Types

type LokiClient

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

func NewLokiClient

func NewLokiClient(uri string) *LokiClient

func (*LokiClient) Push

func (cli *LokiClient) Push() error

func (*LokiClient) RunPush

func (cli *LokiClient) RunPush() chan error

func (*LokiClient) SetURI

func (cli *LokiClient) SetURI(uri string)

func (*LokiClient) WriteLog

func (cli *LokiClient) WriteLog(lable lib.Label, log string, times time.Time) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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