valitail

package
v0.0.0-...-953d526 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(p *Valitail)

Option is a function that can be passed to the New method of Valitail and customize the Valitail that is created.

func WithLogger

func WithLogger(log log.Logger) Option

WithLogger overrides the default logger for Valitail.

func WithRegisterer

func WithRegisterer(reg prometheus.Registerer) Option

WithRegisterer overrides the default registerer for Valitail.

type Valitail

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

Valitail is the root struct for Valitail.

func New

func New(cfg config.Config, dryRun bool, opts ...Option) (*Valitail, error)

New makes a new Valitail.

func (*Valitail) Client

func (p *Valitail) Client() client.Client

Client returns the underlying client Valitail uses to write to Vali.

func (*Valitail) Run

func (p *Valitail) Run() error

Run the valitail; will block until a signal is received.

func (*Valitail) Shutdown

func (p *Valitail) Shutdown()

Shutdown the valitail.

Directories

Path Synopsis
ui
Package ui provides the assets via a virtual filesystem.
Package ui provides the assets via a virtual filesystem.
windows/win_eventlog
Package win_eventlog Input plugin to collect Windows Event Log messages
Package win_eventlog Input plugin to collect Windows Event Log messages

Jump to

Keyboard shortcuts

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