tail

package
v1.22.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Trace *log.Logger
	Info  *log.Logger
	Error *log.Logger
)

Functions

func EvaluateExpression

func EvaluateExpression(model interface{}, fieldExpression string) (string, error)

EvaluateExpression Expression evaluation function. It uses map as a model and evaluates expression given as the parameter using dot syntax: "foo" evaluates to model[foo] "foo.bar" evaluates to model[foo][bar] If a key given in the expression does not exist in the model, function will return empty string and an error.

func ExtractHeader

func ExtractHeader(s string) []string

func Must

func Must(result bool, err error) bool

Must is a helper function to avoid boilerplate error handling for regex matches this way they may be used in single value context

Types

type StatusResponse

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

type Tail

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

Tail is a structure that holds data necessary to perform tailing.

func NewTail

func NewTail(configuration *configuration.Configuration, ctx *cli.Context) *Tail

NewTail creates a new Tailer using configuration

func (*Tail) Indicies added in v1.17.0

func (tail *Tail) Indicies() []string

Accessor for the indicies

func (*Tail) IsVebose

func (tail *Tail) IsVebose() bool

Are we at greater than or equal to verbose

func (*Tail) Start

func (tail *Tail) Start(follow bool) error

Start the tailer

type VersionResponse

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

Jump to

Keyboard shortcuts

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