rpc

package
v0.0.0-...-40e4417 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConn

func NewConn(header byte, target string, opts ...grpc.DialOption) (*grpc.ClientConn, error)

NewConn return new grpc connection

Types

type ConnectionMgr

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

ConnectionMgr rpc connection manager

func NewConnectionMgr

func NewConnectionMgr() *ConnectionMgr

NewConnectionMgr return a new connection mgr

func (*ConnectionMgr) Get

func (c *ConnectionMgr) Get(header byte, target string) (*grpc.ClientConn, error)

Get get a connection

Jump to

Keyboard shortcuts

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