config

package
v0.0.0-...-ff33c78 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server Server        `mapstructure:"server"`
	Logger logger.Config `mapstructure:"logger"`
	Etw    ETW           `mapstructure:"etw"`
	Yara   Yara          `mapstructure:"yara"`
}

func Load

func Load(path string) (v *Config, err error)

type ETW

type ETW struct {
	Process struct {
		Enabled bool `mapstructure:"enabled"`
	} `mapstructure:"process"`
	Thread struct {
		Enabled bool `mapstructure:"enabled"`
	} `mapstructure:"thread"`
	Image struct {
		Enabled bool `mapstructure:"enabled"`
	} `mapstructure:"image"`
	File struct {
		Enabled bool `mapstructure:"enabled"`
	} `mapstructure:"file"`
	Registry struct {
		Enabled bool `mapstructure:"enabled"`
	} `mapstructure:"registry"`
	Network struct {
		Enabled bool `mapstructure:"enabled"`
	} `mapstructure:"network"`
	DiskIO struct {
		Enabled bool `mapstructure:"enabled"`
	} `mapstructure:"diskio"`
}

type Server

type Server struct {
	Address string `mapstructure:"address"`
}

type Yara

type Yara struct {
	Enabled bool     `mapstructure:"enabled"`
	Rules   []string `mapstructure:"rules"`
}

Jump to

Keyboard shortcuts

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