config

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionType added in v0.8.0

type ActionType string
const (
	ForwardAction   ActionType = "forward"
	DropAction      ActionType = "drop"
	TransformAction ActionType = "transform"
)

type Config

type Config struct {
	Requests []*Request `yaml:"requests"`
}

func Load

func Load(p string) (*Config, error)

type Request

type Request struct {
	Condition string                 `yaml:"condition"`
	Action    ActionType             `yaml:"action"`
	Transform map[string]interface{} `yaml:"transform"`
}

Jump to

Keyboard shortcuts

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