Documentation ¶
Index ¶
- Constants
- Variables
- type RadixTree
- func (tree *RadixTree) AccessControl(ipAddress string) bool
- func (tree *RadixTree) Add(ipNet string, value string) error
- func (tree *RadixTree) Delete(ipNet string) error
- func (tree *RadixTree) GetBlackList() []string
- func (tree *RadixTree) Marshal() ([]byte, error)
- func (tree *RadixTree) Search(ip string) string
- func (tree *RadixTree) UnMarshal(serialized io.ReadCloser) error
Constants ¶
View Source
const ( MAX_IPV4_BIT uint32 = 0x80000000 NO_VALUE string = "" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type RadixTree ¶
type RadixTree struct { sync.RWMutex Record map[string]bool `json:"record"` // contains filtered or unexported fields }
func NewRadixTree ¶
func NewRadixTree() *RadixTree
func (*RadixTree) AccessControl ¶
func (*RadixTree) GetBlackList ¶
Click to show internal directories.
Click to hide internal directories.