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 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
Click to show internal directories.
Click to hide internal directories.