Discover Packages
github.com/mushorg/glutton
rules
package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Jul 23, 2023
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Config struct {
Version int `yaml:"version"`
Rules []*Rule `yaml:"rules"`
}
type Rule struct {
Match string `yaml:"match"`
Type string `yaml:"type"`
Target string `yaml:"target,omitempty"`
Name string `yaml:"name,omitempty"`
}
const (
Rewrite RuleType = iota
ProxyTCP
LogTCP
LogHTTP
UserConnHandler
Drop
PassThrough
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.