Documentation ¶
Index ¶
- Variables
- func ClientConn(ctx context.Context, service string, opts ...grpc.DialOption) *grpc.ClientConn
- func Init(ctx context.Context)
- func LibManagerClientConn(ctx context.Context) *grpc.ClientConn
- func Register(address string, option ...etcd.Option)
- func SeatClientConn(ctx context.Context) *grpc.ClientConn
- func UserClientConn(ctx context.Context) *grpc.ClientConn
Constants ¶
This section is empty.
Variables ¶
View Source
var Timeout = 5 * time.Second
Functions ¶
func ClientConn ¶
func ClientConn(ctx context.Context, service string, opts ...grpc.DialOption) *grpc.ClientConn
ClientConn 获取一个 grpc 客户端
func LibManagerClientConn ¶
func LibManagerClientConn(ctx context.Context) *grpc.ClientConn
LibManagerClientConn 获取图书馆管理服务的连接
func SeatClientConn ¶
func SeatClientConn(ctx context.Context) *grpc.ClientConn
SeatClientConn 获取座位服务的连接
func UserClientConn ¶
func UserClientConn(ctx context.Context) *grpc.ClientConn
UserClientConn 获取用户服务的客户端连接
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.