Documentation ¶
Overview ¶
Package vl3lb provides vl3 load balancing chain element
Index ¶
- func NewClient(chainCtx context.Context, vppConn api.Connection, options ...Option) networkservice.NetworkServiceClient
- type Option
- func WithClientURL(clientURL *url.URL) Option
- func WithDialOptions(opts ...grpc.DialOption) Option
- func WithDialTimeout(dialTimeout time.Duration) Option
- func WithPort(port uint16) Option
- func WithProtocol(protocol ip_types.IPProto) Option
- func WithSelector(selector map[string]string) Option
- func WithTargetPort(targetPort uint16) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(chainCtx context.Context, vppConn api.Connection, options ...Option) networkservice.NetworkServiceClient
NewClient - return a new Client chain element implementing the vl3 load balancer
Types ¶
type Option ¶
type Option func(o *vl3LBOptions)
Option is an option pattern for forwarder chain elements
func WithDialOptions ¶
func WithDialOptions(opts ...grpc.DialOption) Option
WithDialOptions sets dial options
func WithDialTimeout ¶
WithDialTimeout sets dial timeout for the client
func WithProtocol ¶
WithProtocol - set IP protocol
func WithSelector ¶
WithSelector - set a load balancer selector
func WithTargetPort ¶
WithTargetPort - set a real server target port
Click to show internal directories.
Click to hide internal directories.