types

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MatchRule

type MatchRule struct {
	Rule      string        `json:"rule"`
	Namespace string        `json:"namespace"`
	Tags      []string      `json:"tags"`
	Metas     []Meta        `json:"metas"`
	Strings   []MatchString `json:"strings"`
}

A MatchRule represents a rule successfully matched against a block of data.

type MatchString

type MatchString struct {
	Name   string `json:"name"`
	Base   uint64 `json:"base"`
	Offset uint64 `json:"offset"`
	Data   []byte `json:"data"`
}

A MatchString represents a string declared and matched in a rule.

type Meta

type Meta struct {
	Identifier string      `json:"identifier"`
	Value      interface{} `json:"value"`
}

Meta represents a rule meta variable. Value can be of type string, int, boolean, or nil.

Jump to

Keyboard shortcuts

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