Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) CreateRoute ¶
func (m *Manager) CreateRoute(name string, node RouteNodeSpec, info RouteInfoSpec) (*Route, error)
create route
type Route ¶
type Route struct { // only use Node RouteNodeSpec Info RouteInfoSpec // contains filtered or unexported fields }
route
func (*Route) CreateRule ¶
func (r *Route) CreateRule(ruleAction RuleAction, selector RuleSelector) (*Rule, error)
type RouteInfoSpec ¶
route info spec, only select important ones, too many extends
type RouteNodeSpec ¶
type RouteNodeSpec struct { // args Type string // unist local broadcast Prefix string // default 0/0 or ::/0 Proto string // Scope string // global link host Metric string // metric num }
route node spec
type RuleAction ¶
type RuleAction struct { // Table string this is attach with table Proto string Nat string Realms string }
rule action
type RuleSelector ¶
type RuleSelector struct { Mark bool // not ! SrcPrefix string // source DestPrefix string // destination Fwmark string // mark IpProto string // ip protocol SPort string // source port DPort string // destination port }
rule selector
type RunCommand ¶
type RunCommand struct {
// contains filtered or unexported fields
}
run command to route
Click to show internal directories.
Click to hide internal directories.