geneve

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "0.2.0"

Functions

func ImportModule

func ImportModule() (*python.PyObject, error)

func ModuleCheck

func ModuleCheck() error

Types

type Rule added in v0.2.0

type Rule struct {
	Id       string   `json:",omitempy"`
	Name     string   `json:",omitempy"`
	RuleId   string   `json:"rule_id,omitempy"`
	Query    string   `json:",omitempy"`
	Type     string   `json:",omitempy"`
	Language string   `json:",omitempy"`
	Enabled  bool     `json:",omitempy"`
	Index    []string `json:",omitempy"`
}

func (Rule) ToPython added in v0.2.0

func (r Rule) ToPython() (*python.PyObject, error)

type SourceEvents

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

func NewSourceEvents

func NewSourceEvents(schema schema.Schema) (*SourceEvents, error)

func (*SourceEvents) AddQuery

func (se *SourceEvents) AddQuery(query string) (*python.PyObject, error)

func (*SourceEvents) AddRule added in v0.2.0

func (se *SourceEvents) AddRule(rule Rule, meta any) (*python.PyObject, error)

func (*SourceEvents) DecRef

func (se *SourceEvents) DecRef()

func (*SourceEvents) Emit

func (se *SourceEvents) Emit(count int) (*python.PyObject, error)

func (*SourceEvents) JsonDumps

func (se *SourceEvents) JsonDumps(o_doc *python.PyObject, sortKeys bool) (*python.PyObject, error)

func (*SourceEvents) Mappings

func (se *SourceEvents) Mappings() (*python.PyObject, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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