grpc

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	AppName     string `yaml:"app_name"`
	ServiceName string
	EtcdAddress string `yaml:"etcd_address"`
}

func FromEnv

func FromEnv(serviceName string) Conf

type GrpcClient

type GrpcClient struct {
	Conf Conf
	Conn *grpc.ClientConn
}

func NewGrpcClient

func NewGrpcClient(conf Conf, opts ...grpc.DialOption) *GrpcClient

Jump to

Keyboard shortcuts

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