endpoint

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

func New

func New(maxTokenLifetime time.Duration,
	nseRegistryClient registry.NetworkServiceEndpointRegistryClient,
	nse *registry.NetworkServiceEndpoint,
	additionalFunctionality ...networkservice.NetworkServiceServer) (*Endpoint, error)

func (*Endpoint) Delete

func (e *Endpoint) Delete(ctx context.Context) error

func (*Endpoint) Register

func (e *Endpoint) Register(ctx context.Context) error

func (*Endpoint) Unregister

func (e *Endpoint) Unregister(ctx context.Context) error

type NetworkServiceEndpointServer

type NetworkServiceEndpointServer interface {
	Start(ctx context.Context) error
	Stop() error
	GetUrl() string
}

type Server

type Server struct {
	Name                    string
	MaxTokenLifetime        time.Duration
	AdditionalFunctionality []networkservice.NetworkServiceServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(name string,
	maxTokenLifetime time.Duration,
	additionalFunctionality []networkservice.NetworkServiceServer) *Server

func (*Server) GetUrl

func (s *Server) GetUrl() string

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

func (*Server) Stop

func (s *Server) Stop() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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