tailer

package
v2.23.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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"`
}

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