nfqlb

package
v1.0.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

View Source
const (
	NFQueues = "0:3"

	MAXPORTRANGE = "0-65535"
)

Variables

This section is empty.

Functions

func FlowList added in v1.0.13

func FlowList() (string, error)

FlowList runs the nfqlb flow-list commands and returns the output

func NewLb added in v0.4.0

func NewLb(options ...LbOption) (*nfqlb, error)

NewLb - Creates LB that implements a Stream in nfqlb as a shared mem lb

func NewLbFactory added in v0.4.0

func NewLbFactory(options ...Option) *nfqlbFactory

func NewNetfilterAdaptor added in v0.4.0

func NewNetfilterAdaptor(options ...Option) (*netfilterAdaptor, error)

Types

type FlowStats added in v1.0.13

type FlowStats struct {
	Flow         *nspAPI.Flow
	MatchesCount int
}

func GetFlowStats added in v1.0.13

func GetFlowStats() ([]*FlowStats, error)

GetFlowStats returns the list of currently configured flows in nfqlb together with their match count metric. The flow will contain only the flow name and stream name since nfqlb is not aware about parent names (conduit/trench).

func (*FlowStats) GetFlow added in v1.0.13

func (fs *FlowStats) GetFlow() *nspAPI.Flow

func (*FlowStats) GetMatchesCount added in v1.0.13

func (fs *FlowStats) GetMatchesCount() int

type LbOption added in v0.4.0

type LbOption func(o *lbOptions)

func WithLbName added in v0.4.0

func WithLbName(name string) LbOption

func WithMaglevM added in v0.4.0

func WithMaglevM(m int) LbOption

func WithMaglevN added in v0.4.0

func WithMaglevN(n int) LbOption

type Option added in v0.4.0

type Option func(o *nfoptions)

func WithNFQueue added in v0.4.0

func WithNFQueue(queue string) Option

func WithNFQueueFanout added in v0.4.0

func WithNFQueueFanout(fanout bool) Option

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL