Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) Block(b [PREFIXES]bool)
- func (c *Client) CreateDestination(s Service, d Destination) error
- func (c *Client) CreateService(s Service) error
- func (c *Client) Destinations(s Service) (destinations []DestinationExtended, e error)
- func (c *Client) Flags(f uint8)
- func (c *Client) Info() (i Info)
- func (c *Client) NATAddress(vip, rip netip.Addr) (r netip.Addr, _ bool)
- func (c *Client) Namespace() string
- func (c *Client) NamespaceAddress() string
- func (c *Client) Prefixes() [PREFIXES]uint64
- func (c *Client) ReadFlow() []byte
- func (c *Client) RemoveDestination(s Service, d Destination) error
- func (c *Client) RemoveService(s Service) error
- func (c *Client) Service(s Service) (se ServiceExtended, e error)
- func (c *Client) Services() (services []ServiceExtended, e error)
- func (c *Client) SetService(s Service, dst ...Destination) error
- func (c *Client) Start() error
- func (c *Client) UpdateVLANs(vlans map[uint16]net.IPNet)
- func (c *Client) WriteFlow(fs []byte)
- type Debug
- type Destination
- type DestinationExtended
- type Info
- type MAC
- type Protocol
- type Service
- type ServiceExtended
- type Stats
Constants ¶
View Source
const ( F_NO_SHARE_FLOWS = bpf.F_NO_SHARE_FLOWS F_NO_TRACK_FLOWS = bpf.F_NO_TRACK_FLOWS F_NO_ESTIMATE_CONNS = bpf.F_NO_ESTIMATE_CONNS F_NO_STORE_STATS = bpf.F_NO_STORE_STATS )
View Source
const PREFIXES = 1048576
View Source
const VETH = bpf.VETH_ID
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { NAT bool Native bool Interfaces []string Address netip.Addr VLANs map[uint16]net.IPNet Debug Debug Redirect bool // obsolete Logger any // obsolete // contains filtered or unexported fields }
func (*Client) CreateDestination ¶
func (c *Client) CreateDestination(s Service, d Destination) error
func (*Client) CreateService ¶
func (*Client) Destinations ¶
func (c *Client) Destinations(s Service) (destinations []DestinationExtended, e error)
func (*Client) NamespaceAddress ¶
func (*Client) RemoveDestination ¶
func (c *Client) RemoveDestination(s Service, d Destination) error
func (*Client) RemoveService ¶
func (*Client) Services ¶
func (c *Client) Services() (services []ServiceExtended, e error)
func (*Client) SetService ¶ added in v0.1.2
func (c *Client) SetService(s Service, dst ...Destination) error
type Destination ¶
type DestinationExtended ¶
type DestinationExtended struct { Destination Destination MAC MAC Stats Stats }
type ServiceExtended ¶
Click to show internal directories.
Click to hide internal directories.