loki

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLokiCore

func NewLokiCore(ctx context.Context, opt ...Option) zapcore.Core

func NewLokiEncode

func NewLokiEncode(labels ...zap.Field) zapcore.Encoder

Types

type Config

type Config struct {
	Enable   bool
	Url      string
	Username string
	Password string
}

type Option

type Option func(*Options)

func AppendLabels

func AppendLabels(labels ...zap.Field) Option

func BasicAuth

func BasicAuth(username string, password string) Option

func WithEnv

func WithEnv() Option

func WithHost

func WithHost() Option

func WithKubernetes

func WithKubernetes() Option

func WithLevelEnable

func WithLevelEnable(enab zap.LevelEnablerFunc) Option

func WithLokiUrl

func WithLokiUrl(u *url.URL) Option

type Options

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

Jump to

Keyboard shortcuts

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