grpc

package
v0.0.0-...-15aa785 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(lc fx.Lifecycle, zapLog *zap.Logger) *grpc.ClientConn

不使用服务发现

func NewClientEtcd

func NewClientEtcd(lc fx.Lifecycle, zapLog *zap.Logger, etcdClient *clientv3.Client) map[string]*grpc.ClientConn

使用etcd作为服务发现

func NewServer

func NewServer(lc fx.Lifecycle, zapLog *zap.Logger) *grpc.Server

不使用服务发现

func NewServerEtcd

func NewServerEtcd(lc fx.Lifecycle, zapLog *zap.Logger, etcdClient *clientv3.Client) *grpc.Server

使用etcd作为服务发现

Types

This section is empty.

Jump to

Keyboard shortcuts

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