tailer

package
v2.36.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 1 module, 0 packages

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.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LTSVTailer added in v2.27.0

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

func NewLTSVTailer added in v2.27.0

func NewLTSVTailer(file string) (*LTSVTailer, error)

func (*LTSVTailer) Tail added in v2.27.0

func (t *LTSVTailer) Tail(ctx context.Context, data chan<- map[string]string)

type NginxAccessItem

type NginxAccessItem struct {
	BodyBytesSent          string `mapstructure:"body_bytes_sent"`
	Status                 string `mapstructure:"status"`
	RemoteAddress          string `mapstructure:"remote_addr"`
	HTTPUserAgent          string `mapstructure:"http_user_agent"`
	Request                string `mapstructure:"request"`
	BytesSent              string `mapstructure:"bytes_sent"`
	RequestLength          string `mapstructure:"request_length"`
	RequestTime            string `mapstructure:"request_time"`
	GzipRatio              string `mapstructure:"gzip_ratio"`
	ServerProtocol         string `mapstructure:"server_protocol"`
	UpstreamConnectTime    string `mapstructure:"upstream_connect_time"`
	UpstreamHeaderTime     string `mapstructure:"upstream_header_time"`
	UpstreamResponseTime   string `mapstructure:"upstream_response_time"`
	UpstreamResponseLength string `mapstructure:"upstream_response_length"`
	UpstreamStatus         string `mapstructure:"upstream_status"`
	UpstreamCacheStatus    string `mapstructure:"upstream_cache_status"`
}

NginxAccessItem represents the decoded access log data

func NewNginxAccessItem

func NewNginxAccessItem(v map[string]string) (*NginxAccessItem, error)

type PatternTailer

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

func NewPatternTailer

func NewPatternTailer(file string, patterns map[string]string) (*PatternTailer, error)

func (*PatternTailer) Tail

func (t *PatternTailer) Tail(ctx context.Context, data chan<- map[string]string)

type Tailer

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

func NewTailer

func NewTailer(file string) (*Tailer, error)

func (*Tailer) Tail

func (t *Tailer) Tail(ctx context.Context, data chan<- string)

Jump to

Keyboard shortcuts

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