Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Bind string `scfg:"bind"` Storage string `scfg:"storage"` Auth struct { User []struct { Name string `scfg:",param"` Key string `scfg:"key"` Networks []string `scfg:"networks"` } `scfg:"user"` Trust struct { Subnet []string `scfg:",param"` } `scfg:"trust"` } `scfg:"auth"` Federate struct{} `scfg:"federate"` ThirdParty struct { Cloudflare struct { Bearer string `scfg:"bearer"` } `scfg:"cloudflare"` } `scfg:"third-party"` Rules struct { BlockTorExit *struct{} `scfg:"block-tor-exit"` BlockDomains *struct{} `scfg:"block-domains"` BlockNetworks *struct{} `scfg:"block-networks"` BlockDEP *struct{} `scfg:"block-dep"` BlockRateLimit *struct{} `scfg:"block-ratelimit"` BlockCommercialISPs *struct{} `scfg:"block-commercial-isp"` } `scfg:"rules"` RateLimit struct { Bucket []struct { Name string `scfg:",param"` LimitBy *string `scfg:"limit-by"` Rate string `scfg:"rate"` } `scfg:"bucket"` } `scfg:"ratelimit"` CommercialNetworks struct { AS []struct { Param int `scfg:",param"` } `scfg:"AS"` } `scfg:"commercial-networks"` }
func ForContext ¶
Returns the config associated with this context.
Click to show internal directories.
Click to hide internal directories.