Documentation ¶
Index ¶
- Constants
- type UATransformer
- func (it *UATransformer) ConfigOptions() []Option
- func (it *UATransformer) Description() string
- func (it *UATransformer) Init() (err error)
- func (it *UATransformer) RawTransform(datas []string) ([]string, error)
- func (it *UATransformer) SampleConfig() string
- func (it *UATransformer) SetStats(err string) StatsInfo
- func (it *UATransformer) Stage() string
- func (it *UATransformer) Stats() StatsInfo
- func (it *UATransformer) Transform(datas []Data) ([]Data, error)
- func (it *UATransformer) Type() string
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
Click to show internal directories.
Click to hide internal directories.