grpc

package
v0.0.0-...-28a9172 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

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

func NewServer

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

func WithServerTelemetry

func WithServerTelemetry(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo,
	handler grpc.UnaryHandler) (resp interface{}, err error)

todo 支持切面方法

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