beater

package
v0.0.0-...-578cd1c Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

View Source
const (
	UTF8    = Charset("UTF-8")
	GB18030 = Charset("GB18030")
)

Variables

This section is empty.

Functions

func ConvertByte2String

func ConvertByte2String(byte []byte, charset Charset) string

func GetOutBoundIP

func GetOutBoundIP() (ip string, err error)

func New

func New(b *beat.Beat, cfg *common.Config) (beat.Beater, error)

New creates an instance of simbeat.

func WalkDir

func WalkDir(dir, suffix string)

获取指定路径下以及所有子目录下的所有文件,可匹配后缀过滤(suffix为空则不过滤)

Types

type Charset

type Charset string

type Check

type Check struct {
	ID          string                `json:"ID"`
	Checkpoints map[string]Checkpoint `json:"check"`
}

type Checkpoint

type Checkpoint struct {
	RuleId  string   `json:"ruleId"`
	ParamEn []string `json:"paramEn"`
	ParamZh []string `json:"paramZh"`
}

基线配置表

type Simbeat

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

Simbeat configuration.

func (*Simbeat) Run

func (bt *Simbeat) Run(b *beat.Beat) error

Run starts simbeat.

func (*Simbeat) Stop

func (bt *Simbeat) Stop()

Stop stops simbeat.

Jump to

Keyboard shortcuts

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