Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientTransactionInterceptor ¶
func ClientTransactionInterceptor(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error
ClientTransactionInterceptor is client interceptor of grpc, it's function is obtain xid in SeataContext, and put it in the http header.
func ServerTransactionInterceptor ¶
func ServerTransactionInterceptor(ctx context.Context, req interface{}, _ *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
ServerTransactionInterceptor is server interceptor of grpc it's function is get xid from grpc http header ,and put it into the context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.