endpoint

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: Apache-2.0 Imports: 22 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name             string
	ServiceName      string
	Labels           map[string]string
	MaxTokenLifetime time.Duration
	MTU              int
}

Config for Endpoint

type Endpoint

type Endpoint struct {
	// contains filtered or unexported fields
}

Endpoint -

func NewEndpoint

func NewEndpoint(
	context context.Context,
	config *Config,
	networkServiceRegistryClient registryapi.NetworkServiceRegistryClient,
	networkServiceEndpointRegistryClient registryapi.NetworkServiceEndpointRegistryClient) (*Endpoint, error)

NewEndpoint -

Note: on teardown if endpoint is expected to explicitly unregister, then the context shall not be cancelled/closed before Delete() is called

func (*Endpoint) Announce

func (e *Endpoint) Announce() error

func (*Endpoint) Delete

func (e *Endpoint) Delete()

Delete -

func (*Endpoint) Denounce

func (e *Endpoint) Denounce() error

func (*Endpoint) GetUrl

func (e *Endpoint) GetUrl() string

func (*Endpoint) Start

func (e *Endpoint) Start(additionalFunctionality ...networkservice.NetworkServiceServer) error

Start -

func (*Endpoint) StartWithoutRegister

func (e *Endpoint) StartWithoutRegister(additionalFunctionality ...networkservice.NetworkServiceServer) error

Start -

type NSEConnectionFactory

type NSEConnectionFactory interface {
	NewNSEIPContext() (*networkservice.IPContext, error)
}

Jump to

Keyboard shortcuts

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