zeus

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Filter-plug: zues zeus is a name of a Greek myth,but it's function is add some fields.Just a easy plug for fun.

Index

Constants

View Source
const (
	ModuleName = "zeus"
)

Variables

This section is empty.

Functions

func InitHandler

func InitHandler(confraw *utils.ConfigRaw) (tfc utils.TypeFilterConfig, err error)

Init zeus Handler.

Types

type FilterConfig

type FilterConfig struct {
	utils.FilterConfig
	Key   string `json:"key"`
	Value string `json:"value"`
}

Define zeus' config.

func (*FilterConfig) Event

func (fc *FilterConfig) Event(event utils.LogEvent) utils.LogEvent

Filter's event,and this is the main function of filter.

Jump to

Keyboard shortcuts

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