grpcmux

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: MIT Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConn

func GetConn() (grpc.ClientConnInterface, error)

GetConn create a new client conn

func LoadLocalConfig

func LoadLocalConfig() *config.Config

load config from local file

func NewServer

func NewServer(opts ...grpc.ServerOption) *grpcServer

func NewServerWithConfig

func NewServerWithConfig(conf *config.Config, opts ...grpc.ServerOption) *grpcServer

Add additional setup besides standard grpc.NewServer

Types

type ClientConn

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

func (*ClientConn) Close

func (cc *ClientConn) Close() error

Close the connections

func (*ClientConn) NewClientConnWithConfig

func (cc *ClientConn) NewClientConnWithConfig(config *config.Config) (grpc.ClientConnInterface, error)

NewClientConnWithConfig create a new client conn with config

Jump to

Keyboard shortcuts

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