Documentation
¶
Index ¶
- Constants
- Variables
- type Dialer
- type Error
- type Policy
- func (p *Policy) Allow() []string
- func (p *Policy) AllowsAny(addr netip.Addr) bool
- func (p *Policy) Check(addr netip.Addr, port uint16) error
- func (p *Policy) Deny() []string
- func (p *Policy) Filter(addrs []netip.Addr) []netip.Addr
- func (p *Policy) Summary() string
- func (p *Policy) With(allow, deny []Rule) *Policy
- type Resolver
- type Rule
- type Rules
Constants ¶
View Source
const ConnectTimeout = 30 * time.Second
View Source
const Errno = "EACCES"
Variables ¶
View Source
var ErrDenied = errors.New("denied by policy")
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
func NewResolver ¶
Click to show internal directories.
Click to hide internal directories.