service

package
v0.0.0-...-fc74bcf Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Business1

type Business1 struct{}

func (*Business1) Commit

func (b *Business1) Commit(ctx context.Context, businessActionContext *tm.BusinessActionContext) (bool, error)

func (*Business1) GetActionName

func (b *Business1) GetActionName() string

func (*Business1) Prepare

func (b *Business1) Prepare(ctx context.Context, params interface{}) (bool, error)

func (*Business1) Rollback

func (b *Business1) Rollback(ctx context.Context, businessActionContext *tm.BusinessActionContext) (bool, error)

type Business2

type Business2 struct{}

func (*Business2) Commit

func (b *Business2) Commit(ctx context.Context, businessActionContext *tm.BusinessActionContext) (bool, error)

func (*Business2) GetActionName

func (b *Business2) GetActionName() string

func (*Business2) Prepare

func (b *Business2) Prepare(ctx context.Context, params interface{}) (bool, error)

func (*Business2) Rollback

func (b *Business2) Rollback(ctx context.Context, businessActionContext *tm.BusinessActionContext) (bool, error)

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
}

func (*GrpcBusinessService2) Remoting

func (b *GrpcBusinessService2) Remoting(ctx context.Context, params *pb.Params) (*anypb.Any, 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

Jump to

Keyboard shortcuts

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