Versions in this module Expand all Collapse all v1 v1.0.0 Apr 25, 2022 Changes in this version + var Debug = false + func Add(setname string, entry *GoIPSetEntry) error + func Create(setname, typename string, options GoIpsetCreateOptions) error + func Del(setname string, entry *GoIPSetEntry) error + func Destroy(setname string) error + func Flush(setname string) error + func Protocol() (uint8, error) + type GoIPSetEntry struct + Bytes uint64 + Comment string + Packets uint64 + Replace bool + Timeout uint32 + type GoIPSetResult struct + CadtFlags uint32 + Entries []GoIPSetEntry + Family uint8 + Flags uint8 + HashSize uint32 + MaxElements uint32 + Nfgenmsg *nl.Nfgenmsg + NumEntries uint32 + ProtoMin uint8 + Protocol uint8 + References uint32 + Revision uint8 + SetName string + SizeInMemory uint32 + Timeout uint32 + TypeName string + func List(setname string) (GoIPSetResult, error) + func ListAll() ([]GoIPSetResult, error) + type GoIpset struct + func NewGoIpset() *GoIpset + func (g *GoIpset) Add(setname string, entry *GoIPSetEntry) error + func (g *GoIpset) Create(setname, typename string, options GoIpsetCreateOptions) error + func (g *GoIpset) Del(setname string, entry *GoIPSetEntry) error + func (g *GoIpset) Destroy(setname string) error + func (g *GoIpset) Flush(setname string) error + func (g *GoIpset) List(name string) (GoIPSetResult, error) + func (g *GoIpset) ListAll() ([]GoIPSetResult, error) + func (g *GoIpset) Protocol() (uint8, error) + type GoIpsetCreateOptions struct + Comments bool + Counters bool + Family int + Replace bool + Skbinfo bool + Timeout uint32 + type Set interface + String func() string + type SetIP struct + IP net.IP + IPTO net.IP + func (set *SetIP) String() string + type SetIPPort struct + IP net.IP + IPTO net.IP + Name string + Port uint16 + PortTo uint16 + Proto uint8 + func (set *SetIPPort) String() string + type SetMac struct + MAC net.HardwareAddr + func (set *SetMac) String() string + type SetNet struct + CIDR uint8 + IP net.IP + func (set *SetNet) String() string + type SetNetPort struct + CIDR uint8 + IP net.IP + Port uint16 + PortTo uint16 + Proto uint8 + func (set *SetNetPort) String() string + type SetResult struct + CIDR uint8 + IP net.IP + MAC net.HardwareAddr + Port uint16 + Proto uint8 + func (set *SetResult) String() string