vl3lb

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Overview

Package vl3lb provides vl3 load balancing chain element

Index

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 WithClientURL

func WithClientURL(clientURL *url.URL) Option

WithClientURL sets clientURL.

func WithDialOptions

func WithDialOptions(opts ...grpc.DialOption) Option

WithDialOptions sets dial options

func WithDialTimeout

func WithDialTimeout(dialTimeout time.Duration) Option

WithDialTimeout sets dial timeout for the client

func WithPort

func WithPort(port uint16) Option

WithPort - set a load balancer port

func WithProtocol

func WithProtocol(protocol ip_types.IPProto) Option

WithProtocol - set IP protocol

func WithSelector

func WithSelector(selector map[string]string) Option

WithSelector - set a load balancer selector

func WithTargetPort

func WithTargetPort(targetPort uint16) Option

WithTargetPort - set a real server target port

Jump to

Keyboard shortcuts

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