query

package
v6.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(protoAddr string) (net.Conn, error)

Connect dials the given address and returns a net.Conn. The protoAddr argument should be prefixed with the protocol, eg. "tcp://127.0.0.1:8080" or "unix:///tmp/test.sock".

Types

type Client

type Client struct {
	GrpcConn *grpc.ClientConn

	QueryTimeout time.Duration
	// contains filtered or unexported fields
}

func NewClient

func NewClient(grpcEndpoint string, queryTimeout time.Duration) (*Client, error)

func (Client) NewCtx

func (c Client) NewCtx() (context.Context, context.CancelFunc)

func (Client) NewCtxWithCancel

func (c Client) NewCtxWithCancel() (context.Context, context.CancelFunc)

Jump to

Keyboard shortcuts

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