sgrpc

package
v0.0.0-...-daf8b82 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GRPC_HREADER_GTID         = "DTX_GTID"
	GRPC_HREADER_BRANCHID     = "DTX_BRANCH_ID"
	GRPC_HEADER_TC_DATACENTER = "DTX_TC_DATACENTER"
	GRPC_HEADER_TC_NODE       = "DTX_TC_NODE"
	GRPC_HEADER_TXN_TYPE      = "DTX_TXN_TYPE"
)

Variables

This section is empty.

Functions

func Init

func Init(size int) error

func Invoke

func Invoke(ctx context.Context, domain string, gtid string,
	bid int, method string, payload []byte) ([]byte, error)

func ParseContextMeta

func ParseContextMeta(ctx context.Context) (gtid string, bid int)

func RegisterCustomProto

func RegisterCustomProto()

func SetMetaFromOutgoingContext

func SetMetaFromOutgoingContext(ctx context.Context, gtid string, bid int) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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