client

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: 0

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
	RequestTimeout   time.Duration
	ConnectTo        url.URL
	MaxTokenLifetime time.Duration
}

Config - configuration for network service client

func (*Config) IsValid

func (c *Config) IsValid() error

IsValid - check if configuration is valid

type FullMeshNetworkServiceClient

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

func (*FullMeshNetworkServiceClient) Close

func (fmnsc *FullMeshNetworkServiceClient) Close() error

Close -

func (*FullMeshNetworkServiceClient) Request

Request -

type NSCConnectionFactory

type NSCConnectionFactory interface {
	NewNSCIPContext() (*networkservice.IPContext, error)
}

type NetworkServiceClient

type NetworkServiceClient interface {
	Request(request *networkservice.NetworkServiceRequest) error
	Close() error
}

func NewFullMeshNetworkServiceClient

func NewFullMeshNetworkServiceClient(config *Config, nsmAPIClient *nsm.APIClient, additionalFunctionality ...networkservice.NetworkServiceClient) NetworkServiceClient

NewFullMeshNetworkServiceClient -

func NewSimpleNetworkServiceClient

func NewSimpleNetworkServiceClient(config *Config, nsmAPIClient *nsm.APIClient, additionalFunctionality ...networkservice.NetworkServiceClient) NetworkServiceClient

NewnetworkServiceClient

type SimpleNetworkServiceClient

type SimpleNetworkServiceClient struct {
	Connection *networkservice.Connection
	// contains filtered or unexported fields
}

func (*SimpleNetworkServiceClient) Close

func (snsc *SimpleNetworkServiceClient) Close() error

func (*SimpleNetworkServiceClient) Request

Jump to

Keyboard shortcuts

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