grpcclient

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(log Logger, name string, address string, opts ...ClientOption) *Client

func (*Client) Close

func (g *Client) Close()

func (*Client) Connector

func (g *Client) Connector() *ClientConn

func (*Client) Open

func (g *Client) Open() error

func (*Client) String

func (g *Client) String() string

type ClientConn

type ClientConn = grpc.ClientConn

type ClientOption

type ClientOption func(*Client)

func WithDialOptions

func WithDialOptions(d ...DialOption) ClientOption

type ClientProvider

type ClientProvider interface {
	Open() error
	Close()
	String() string
}

type DialOption

type DialOption = grpc.DialOption

type Logger

type Logger = logger.Logger

type UnaryClientInterceptor

type UnaryClientInterceptor = grpc.UnaryClientInterceptor

Jump to

Keyboard shortcuts

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