mgrpc

package
v1.22.0-beta.8 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCConnection

type GRPCConnection struct {
	Addr string
	Conn *grpc.ClientConn
}

GRPCConnection is a struct which deal with gRPC connections.

func (*GRPCConnection) Connect

func (c *GRPCConnection) Connect() error

Connect keeps a singleton connection with gRPC.

func (*GRPCConnection) GetNewClient

func (c *GRPCConnection) GetNewClient() (*grpc.ClientConn, error)

GetNewClient returns a connection to gRPC, reconnect it if necessary.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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