loki

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

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

func New

func New() *Builder

New returns a Builder for the Loki struct.

func (*Builder) Build

func (b *Builder) Build() *loki

Build returns a configured Loki struct.

func (*Builder) Client

func (b *Builder) Client(cli *http.Client) *Builder

Client injects an HTTP client.

func (*Builder) ErrChannel

func (b *Builder) ErrChannel(e chan error) *Builder

ErrChannel injects a channel aggregating errors from Stream().

func (*Builder) LogChannel

func (b *Builder) LogChannel(l chan backend.RawLog) *Builder

LogChannel injects a channel receiving the log messages that will end up going to Loki in Stream().

func (*Builder) Url

func (b *Builder) Url(u string) *Builder

Url takes the hostname of the Loki instance and builds the full log-pushing API url.

Jump to

Keyboard shortcuts

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