Documentation
¶
Overview ¶
Package policy implements server-side relay authorization policy.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidTarget indicates a noncanonical, missing, or zero-port UDP target. ErrInvalidTarget = errors.New("invalid UDP target") // ErrEmptyTargetSet indicates a server policy that permits no explicit targets. ErrEmptyTargetSet = errors.New("empty target allowlist") )
Functions ¶
This section is empty.
Types ¶
type TargetSet ¶
type TargetSet struct {
// contains filtered or unexported fields
}
TargetSet is an immutable exact-match logical target allowlist.
func NewTargetSet ¶
NewTargetSet validates and copies an exact target allowlist.
Click to show internal directories.
Click to hide internal directories.