nsmgrproxy

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 28 Imported by: 1

Documentation

Overview

Package nsmgrproxy provides chain of networkservice.NetworkServiceServer chain elements to creating NSMgrProxy

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(ctx context.Context, regURL, proxyURL *url.URL, tokenGenerator token.GeneratorFunc, options ...Option) nsmgr.Nsmgr

NewServer creates new proxy NSMgr

Types

type Option

type Option func(o *serverOptions)

Option modifies option value

func WithAuthorizeServer

func WithAuthorizeServer(authorizeServer networkservice.NetworkServiceServer) Option

WithAuthorizeServer sets authorize server for the server

func WithDialOptions added in v1.1.0

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

WithDialOptions sets connect Options for the server

func WithDialTimeout added in v1.1.0

func WithDialTimeout(dialTimeout time.Duration) Option

WithDialTimeout sets dial timeout for the server

func WithListenOn

func WithListenOn(u *url.URL) Option

WithListenOn sets current listenOn url

func WithMapIPFilePath

func WithMapIPFilePath(p string) Option

WithMapIPFilePath sets the custom path for the file that contains internal to external IPs information in YAML format

func WithName

func WithName(name string) Option

WithName sets name for the server

Jump to

Keyboard shortcuts

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