forwarder

package
v1.11.2-rc.3 Latest Latest
Warning

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

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

Documentation

Overview

Package forwarder provides an endpoint implementing xconnectns

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(ctx context.Context, tokenGenerator token.GeneratorFunc, vppConn Connection, tunnelIP net.IP, options ...Option) endpoint.Endpoint

NewServer - returns an implementation of the xconnectns network service

Types

type Connection

type Connection interface {
	api.Connection
	api.ChannelProvider
}

Connection aggregates the api.Connection and api.ChannelProvider interfaces

type Option added in v1.3.0

type Option func(o *forwarderOptions)

Option is an option pattern for forwarder chain elements

func WithAuthorizeMonitorConnectionServer added in v1.5.0

func WithAuthorizeMonitorConnectionServer(authorizeMonitorConnectionServer networkservice.MonitorConnectionServer) Option

WithAuthorizeMonitorConnectionServer sets authorization server chain element

func WithAuthorizeServer added in v1.3.0

func WithAuthorizeServer(authorizeServer networkservice.NetworkServiceServer) Option

WithAuthorizeServer sets authorization server chain element

func WithCleanupOptions added in v1.3.0

func WithCleanupOptions(opts ...cleanup.Option) Option

WithCleanupOptions sets cleanup options

func WithClientAdditionalFunctionality added in v1.5.0

func WithClientAdditionalFunctionality(additionalFunctionality ...networkservice.NetworkServiceClient) Option

WithClientAdditionalFunctionality sets client additional functionality

func WithClientURL added in v1.3.0

func WithClientURL(clientURL *url.URL) Option

WithClientURL sets clientURL.

func WithDialOptions added in v1.3.0

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

WithDialOptions sets dial options

func WithDialTimeout added in v1.3.0

func WithDialTimeout(dialTimeout time.Duration) Option

WithDialTimeout sets dial timeout for the client

func WithMechanismPriority added in v1.7.0

func WithMechanismPriority(priorityList []string) Option

WithMechanismPriority sets mechanismpriority option

func WithName added in v1.3.0

func WithName(name string) Option

WithName - set a forwarder name

func WithStatsOptions added in v1.3.0

func WithStatsOptions(opts ...stats.Option) Option

WithStatsOptions sets stats options

func WithVlanDomain2Device added in v1.3.0

func WithVlanDomain2Device(domain2Device map[string]string) Option

WithVlanDomain2Device sets vlan option

func WithVxlanOptions added in v1.3.0

func WithVxlanOptions(opts ...vxlan.Option) Option

WithVxlanOptions sets vxlan options

Jump to

Keyboard shortcuts

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