call

package
v0.0.0-...-7604275 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicCall

type BasicCall struct {
	Conn       *grpc.ClientConn
	ConnCancel context.CancelFunc
	DialCtx    context.Context
	DialCancel context.CancelFunc
}

func NewBasicCall

func NewBasicCall(host string, port uint) *BasicCall

func (*BasicCall) Close

func (c *BasicCall) Close()

func (*BasicCall) GetClientConn

func (c *BasicCall) GetClientConn(host string, port uint) (*grpc.ClientConn, context.CancelFunc)

func (*BasicCall) GetContext

func (c *BasicCall) GetContext() (context.Context, context.CancelFunc)

type PingCall

type PingCall struct {
	*BasicCall
}

func NewPingCall

func NewPingCall(host string, port uint) *PingCall

func (*PingCall) Ping

func (c *PingCall) Ping() (*proto_build.PingResponse, error)

Jump to

Keyboard shortcuts

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