connectivity

package
v0.7.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connectivity

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

Connectivity defines client connection to a targeted server host

func NewConnectivity

func NewConnectivity(serverHost string, requestTimeout time.Duration) (*Connectivity, error)

NewConnectivity initializes client connection

func (*Connectivity) Close

func (c *Connectivity) Close()

Close closes client connection and its context

func (*Connectivity) GetConnection

func (c *Connectivity) GetConnection() *grpc.ClientConn

GetConnection gets client connection

func (*Connectivity) GetContext

func (c *Connectivity) GetContext() context.Context

GetContext gets request context

Jump to

Keyboard shortcuts

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