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
Click to show internal directories.
Click to hide internal directories.