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 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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