Documentation ¶
Overview ¶
Package route handle route table for darwin/linux.
Index ¶
- Variables
- func FormatCIDR(cidr string) string
- type EphemeralItem
- type EphemeralItems
- func (e *EphemeralItems) Add(i *EphemeralItem)
- func (e *EphemeralItems) Find(cidr string) *list.Element
- func (e *EphemeralItems) GetFront() *EphemeralItem
- func (e *EphemeralItems) Len() int
- func (e *EphemeralItems) Match(ipnet *net.IPNet) *EphemeralItem
- func (e *EphemeralItems) Remove(cidr string) *EphemeralItem
- type Item
- type Items
- type Route
- func (r *Route) AddEphemeralItem(i *EphemeralItem) error
- func (r *Route) AddItem(i *Item) error
- func (r *Route) DeleteRoute(cidr string) error
- func (r *Route) GetEphemeralItems() []EphemeralItem
- func (r *Route) GetItems() Items
- func (r *Route) Load(fp string) error
- func (r *Route) Match(ipnet *net.IPNet) *Item
- func (r *Route) PersistEphemeralItem(cidr string) error
- func (r *Route) RemoveEphemeralItem(cidr string) error
- func (r *Route) RemoveItem(cidr string) error
- func (r *Route) Save(fp string) error
- func (r *Route) SetRoute(cidr string) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func FormatCIDR ¶
Types ¶
type EphemeralItem ¶
type EphemeralItems ¶
type EphemeralItems struct {
// contains filtered or unexported fields
}
func NewEphemeralItems ¶
func NewEphemeralItems() *EphemeralItems
func (*EphemeralItems) Add ¶
func (e *EphemeralItems) Add(i *EphemeralItem)
func (*EphemeralItems) GetFront ¶
func (e *EphemeralItems) GetFront() *EphemeralItem
func (*EphemeralItems) Len ¶
func (e *EphemeralItems) Len() int
func (*EphemeralItems) Match ¶
func (e *EphemeralItems) Match(ipnet *net.IPNet) *EphemeralItem
func (*EphemeralItems) Remove ¶
func (e *EphemeralItems) Remove(cidr string) *EphemeralItem
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
func (*Route) AddEphemeralItem ¶
func (r *Route) AddEphemeralItem(i *EphemeralItem) error
func (*Route) DeleteRoute ¶
func (*Route) GetEphemeralItems ¶
func (r *Route) GetEphemeralItems() []EphemeralItem
func (*Route) PersistEphemeralItem ¶
func (*Route) RemoveEphemeralItem ¶
func (*Route) RemoveItem ¶
Click to show internal directories.
Click to hide internal directories.