Documentation ¶
Index ¶
- Variables
- type CIDR
- type Consecutive
- type ContainsStatus
- type Exclude
- func (e *Exclude) Contains(c CIDR) ContainsStatus
- func (e *Exclude) ContainsIP(addr netip.Addr) bool
- func (e *Exclude) DelExclude(addr netip.Addr) error
- func (e *Exclude) Exclude() Group
- func (e *Exclude) ExcludeAddress(addr netip.Addr) error
- func (e *Exclude) ExcludeCIDR(c Consecutive) error
- func (e *Exclude) Include() CIDR
- func (e *Exclude) Length() *big.Int
- func (e *Exclude) NextIP(addr netip.Addr) netip.Addr
- func (e *Exclude) Strings() []string
- type Fragment
- type Group
- type Prefix
- type Range
- type Single
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Consecutive ¶
func ParseConsecutive ¶
func ParseConsecutive(s string) (Consecutive, error)
type ContainsStatus ¶
type ContainsStatus uint8
const ( Contains ContainsStatus = iota ContainsPartially ContainsNot )
type Exclude ¶
type Exclude struct {
// contains filtered or unexported fields
}
func NewExclude ¶
func NewExclude(c CIDR, exclude ...Consecutive) (*Exclude, error)
func (*Exclude) Contains ¶
func (e *Exclude) Contains(c CIDR) ContainsStatus
func (*Exclude) ExcludeCIDR ¶
func (e *Exclude) ExcludeCIDR(c Consecutive) error
type Group ¶
type Group struct {
Arr []Consecutive
}
func ParseGroup ¶
func (*Group) AddCIDR ¶
func (x *Group) AddCIDR(c Consecutive) error
func (*Group) Contains ¶
func (x *Group) Contains(cidr CIDR) ContainsStatus
type Prefix ¶
type Prefix struct {
// contains filtered or unexported fields
}
func ParsePrefix ¶
func (Prefix) Contains ¶
func (x Prefix) Contains(c CIDR) ContainsStatus
type Range ¶
type Range struct {
// contains filtered or unexported fields
}
func ParseRange ¶
func (*Range) Contains ¶
func (x *Range) Contains(c CIDR) ContainsStatus
type Single ¶
type Single struct {
// contains filtered or unexported fields
}
func ParseSingle ¶
func (*Single) Contains ¶
func (x *Single) Contains(b CIDR) ContainsStatus
Click to show internal directories.
Click to hide internal directories.