service

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProxySvc = &ProxyService{
	Service: service,
}
View Source
var TccProxyServiceA = &TCCProxyServiceA{
	ServiceA: serviceA,
}
View Source
var TccProxyServiceB = &TCCProxyServiceB{
	ServiceB: serviceB,
}
View Source
var TccProxyServiceC = &TCCProxyServiceC{
	ServiceC: serviceC,
}

Functions

This section is empty.

Types

type ProxyService

type ProxyService struct {
	*Service
	TCCCommitted func(ctx context.Context) error
	TCCCanceled  func(ctx context.Context) error
}

func (*ProxyService) GetMethodTransactionInfo

func (svc *ProxyService) GetMethodTransactionInfo(methodName string) *tm.TransactionInfo

func (*ProxyService) GetProxyService

func (svc *ProxyService) GetProxyService() interface{}

type Service

type Service struct {
}

func (*Service) TCCCanceled

func (svc *Service) TCCCanceled(ctx context.Context) error

func (*Service) TCCCommitted

func (svc *Service) TCCCommitted(ctx context.Context) error

type ServiceA

type ServiceA struct {
}

func (*ServiceA) Cancel

func (svc *ServiceA) Cancel(ctx *context.BusinessActionContext) bool

func (*ServiceA) Confirm

func (svc *ServiceA) Confirm(ctx *context.BusinessActionContext) bool

func (*ServiceA) Try

func (svc *ServiceA) Try(ctx *context.BusinessActionContext) (bool, error)

type ServiceB

type ServiceB struct {
}

func (*ServiceB) Cancel

func (svc *ServiceB) Cancel(ctx *context.BusinessActionContext) bool

func (*ServiceB) Confirm

func (svc *ServiceB) Confirm(ctx *context.BusinessActionContext) bool

func (*ServiceB) Try

func (svc *ServiceB) Try(ctx *context.BusinessActionContext) (bool, error)

type ServiceC

type ServiceC struct {
}

func (*ServiceC) Cancel

func (svc *ServiceC) Cancel(ctx *context.BusinessActionContext) bool

func (*ServiceC) Confirm

func (svc *ServiceC) Confirm(ctx *context.BusinessActionContext) bool

func (*ServiceC) Try

func (svc *ServiceC) Try(ctx *context.BusinessActionContext) (bool, error)

type TCCProxyServiceA

type TCCProxyServiceA struct {
	*ServiceA

	Try func(ctx *context.BusinessActionContext) (bool, error) `TccActionName:"ServiceA"`
}

func (*TCCProxyServiceA) GetTccService

func (svc *TCCProxyServiceA) GetTccService() tcc.TccService

type TCCProxyServiceB

type TCCProxyServiceB struct {
	*ServiceB

	Try func(ctx *context.BusinessActionContext) (bool, error) `TccActionName:"ServiceB"`
}

func (*TCCProxyServiceB) GetTccService

func (svc *TCCProxyServiceB) GetTccService() tcc.TccService

type TCCProxyServiceC

type TCCProxyServiceC struct {
	*ServiceC

	Try func(ctx *context.BusinessActionContext) (bool, error) `TccActionName:"ServiceC"`
}

func (*TCCProxyServiceC) GetTccService

func (svc *TCCProxyServiceC) GetTccService() tcc.TccService

Jump to

Keyboard shortcuts

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