ua

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

View Source
const Name = "UserAgent"

Variables

This section is empty.

Functions

This section is empty.

Types

type UATransformer

type UATransformer struct {
	Key              string `json:"key"`
	RegexYmlFilePath string `json:"regex_yml_path"`
	UADevice         string `json:"device"`
	UAOS             string `json:"os"`
	UAAgent          string `json:"agent"`
	MemCache         string `json:"memory_cache"`
	// contains filtered or unexported fields
}

UATransformer represents a transform to run an ua log.

func (*UATransformer) ConfigOptions

func (it *UATransformer) ConfigOptions() []Option

func (*UATransformer) Description

func (it *UATransformer) Description() string

func (*UATransformer) Init

func (it *UATransformer) Init() (err error)

func (*UATransformer) RawTransform

func (it *UATransformer) RawTransform(datas []string) ([]string, error)

func (*UATransformer) SampleConfig

func (it *UATransformer) SampleConfig() string

func (*UATransformer) SetStats added in v1.5.1

func (it *UATransformer) SetStats(err string) StatsInfo

func (*UATransformer) Stage

func (it *UATransformer) Stage() string

func (*UATransformer) Stats

func (it *UATransformer) Stats() StatsInfo

func (*UATransformer) Transform

func (it *UATransformer) Transform(datas []Data) ([]Data, error)

func (*UATransformer) Type

func (it *UATransformer) Type() string

Jump to

Keyboard shortcuts

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