Documentation ¶
Index ¶
- type IPContainer
- type IPRange
- func (b *IPRange) Count() int
- func (b *IPRange) Do(fn func(uint32) bool)
- func (b *IPRange) End2IP() string
- func (b *IPRange) GetAllIPToInt() []uint32
- func (b *IPRange) GetAllIPToStr() []string
- func (b *IPRange) Include(ip uint32) bool
- func (b *IPRange) IncludeRange(sIP, eIP uint32) bool
- func (b *IPRange) Start2IP() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPContainer ¶
type IPContainer struct {
IPRanges []*IPRange
}
func NewIPContainer ¶
func NewIPContainer(ipStr string) (*IPContainer, error)
func (*IPContainer) AllToLong ¶
func (b *IPContainer) AllToLong() []uint32
func (*IPContainer) AllToStr ¶
func (b *IPContainer) AllToStr() []string
func (*IPContainer) Count ¶
func (b *IPContainer) Count() int
func (*IPContainer) Do ¶
func (b *IPContainer) Do(fn func(ipRange *IPRange) bool)
type IPRange ¶
func (*IPRange) GetAllIPToInt ¶
func (*IPRange) GetAllIPToStr ¶
func (*IPRange) IncludeRange ¶
Click to show internal directories.
Click to hide internal directories.