Documentation
¶
Index ¶
- func ClientMetricsInterceptor(prefix string) grpc.UnaryClientInterceptor
- func NewClient(ctx context.Context, target string, opts ...grpc.DialOption) (*client, error)
- func NewServer(opts ...grpc.ServerOption) *grpc.Server
- func ServerMetricsInterceptor(prefix string) grpc.UnaryServerInterceptor
- type IClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientMetricsInterceptor ¶
func ClientMetricsInterceptor(prefix string) grpc.UnaryClientInterceptor
todo 后续按需支持
func ServerMetricsInterceptor ¶
func ServerMetricsInterceptor(prefix string) grpc.UnaryServerInterceptor
Types ¶
type IClient ¶
type IClient interface { GetConn() *grpc.ClientConn Close() error }
grpc 基础客户端, 预设配置和工具.
Click to show internal directories.
Click to hide internal directories.