Documentation ¶
Index ¶
- type Business1
- func (b *Business1) Commit(ctx context.Context, businessActionContext *tm.BusinessActionContext) (bool, error)
- func (b *Business1) GetActionName() string
- func (b *Business1) Prepare(ctx context.Context, params interface{}) (bool, error)
- func (b *Business1) Rollback(ctx context.Context, businessActionContext *tm.BusinessActionContext) (bool, error)
- type Business2
- func (b *Business2) Commit(ctx context.Context, businessActionContext *tm.BusinessActionContext) (bool, error)
- func (b *Business2) GetActionName() string
- func (b *Business2) Prepare(ctx context.Context, params interface{}) (bool, error)
- func (b *Business2) Rollback(ctx context.Context, businessActionContext *tm.BusinessActionContext) (bool, error)
- type GrpcBusinessService1
- type GrpcBusinessService2
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Business1 ¶
type Business1 struct{}
func (*Business1) GetActionName ¶
type Business2 ¶
type Business2 struct{}
func (*Business2) GetActionName ¶
type GrpcBusinessService1 ¶
type GrpcBusinessService1 struct { pb.UnimplementedTCCServiceBusiness1Server Business1 *tcc.TCCServiceProxy }
func (*GrpcBusinessService1) Remoting ¶
func (b *GrpcBusinessService1) Remoting(ctx context.Context, params *pb.Params) (*wrapperspb.BoolValue, error)
Remoting is your rpc method be defined in proto IDL, you must use TccServiceProxy to proxy your business Object in rpc method , e.g. the Remoting method
type GrpcBusinessService2 ¶
type GrpcBusinessService2 struct { pb.UnimplementedTCCServiceBusiness2Server Business2 *tcc.TCCServiceProxy }
Click to show internal directories.
Click to hide internal directories.