nsm

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: Apache-2.0 Imports: 17 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClient

type APIClient struct {
	GRPCClient *grpc.ClientConn
	Config     *Config

	NetworkServiceEndpointRegistryClient registry.NetworkServiceEndpointRegistryClient
	NetworkServiceRegistryClient         registry.NetworkServiceRegistryClient
	// contains filtered or unexported fields
}

APIClient -

func NewAPIClient

func NewAPIClient(ctx context.Context, config *Config) *APIClient

NewAPIClient -

func (*APIClient) GetClientOptions

func (apiClient *APIClient) GetClientOptions() []grpc.DialOption

type Config

type Config struct {
	Name             string
	ConnectTo        url.URL
	DialTimeout      time.Duration
	RequestTimeout   time.Duration
	MaxTokenLifetime time.Duration
}

Config for NSM API Client

func (*Config) IsValid

func (c *Config) IsValid() error

IsValid checks if the configuration is valid

Directories

Path Synopsis
Package interfacemonitor contains code implementing NetworkServiceServer and NetworkServiceClient to adverstise a listener when an nsm interface has been created or removed
Package interfacemonitor contains code implementing NetworkServiceServer and NetworkServiceClient to adverstise a listener when an nsm interface has been created or removed
Package interfacename contains code implementing NetworkServiceServer and NetworkServiceClient to generate and set the name of the interface in the mechanism and the mechanism preferences of the requests
Package interfacename contains code implementing NetworkServiceServer and NetworkServiceClient to generate and set the name of the interface in the mechanism and the mechanism preferences of the requests

Jump to

Keyboard shortcuts

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