hgrpc

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientMetricsInterceptor

func ClientMetricsInterceptor(prefix string) grpc.UnaryClientInterceptor

todo 后续按需支持

func NewClient

func NewClient(ctx context.Context, target string, opts ...grpc.DialOption) (*client, error)

func NewServer

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

func ServerMetricsInterceptor

func ServerMetricsInterceptor(prefix string) grpc.UnaryServerInterceptor

Types

type IClient

type IClient interface {
	GetConn() *grpc.ClientConn
	Close() error
}

grpc 基础客户端, 预设配置和工具.

Jump to

Keyboard shortcuts

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