rpc

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallerServiceInfo

type CallerServiceInfo struct {
	Env                  string
	Region               string
	CallerServiceName    string
	CallerServiceMethod  string
	CallerServiceGroup   string
	CallerServiceProject string
	CallerServiceProduct string
	CallerServiceBizName string
	CallerServiceHost    string
	CallerServiceIdc     string
}

func ExtractUpstreamServiceInfo

func ExtractUpstreamServiceInfo(ctx context.Context) *CallerServiceInfo

ExtractUpstreamServiceInfo 从ctx中提取上游调用方信息

type IRpcWrapper

type IRpcWrapper interface {
	// ClientWrapper rpc 客户端 wrapper
	ClientWrapper() client.CallWrapper
	// ServerWrapper rpc 服务端 wrapper
	ServerWrapper() server.HandlerWrapper
}

IRpcWrapper rpc wrapper: 增强rpc功能的wrapper

Jump to

Keyboard shortcuts

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