Versions in this module Expand all Collapse all v1 v1.0.1 Mar 21, 2025 Changes in this version type Rules + func Init(file io.Reader) (Rules, error) v1.0.0 Jul 23, 2023 Changes in this version + func InitRule(idx int, rule *Rule) error + type Config struct + Rules []*Rule + Version int + type Rule struct + Match string + Name string + Target string + Type string + func (r *Rule) String() string + type RuleType int + const Drop + const LogHTTP + const LogTCP + const PassThrough + const ProxyTCP + const Rewrite + const UserConnHandler + type Rules []*Rule + func ParseRuleSpec(file *os.File) (Rules, error) + func (rs Rules) Match(network string, srcAddr, dstAddr net.Addr) (*Rule, error)