Versions in this module Expand all Collapse all v2 v2.0.7 Sep 17, 2021 v2.0.6 Sep 16, 2021 Changes in this version + var ActionName = "actionName" + var ActionStartTime = "action-start-time" + var CancelMethod = "Cancel" + var CommitMethod = "sys::commit" + var ConfirmMethod = "Confirm" + var HostName = "host-name" + var PrepareMethod = "sys::prepare" + var RollbackMethod = "sys::rollback" + var TccActionContext = "actionContext" + var TccActionName = "TccActionName" + var TccMethodArguments = "arguments" + var TccMethodResult = "result" + var TryMethod = "Try" + func ImplementTCC(v TccProxyService) + type TCCResource struct + ActionName string + CommitMethod *proxy.MethodDescriptor + CommitMethodName string + PrepareMethodName string + RollbackMethod *proxy.MethodDescriptor + RollbackMethodName string + func (resource *TCCResource) GetBranchType() apis.BranchSession_BranchType + func (resource *TCCResource) GetResourceID() string + type TCCResourceManager struct + ResourceCache map[string]model.Resource + func GetTCCResourceManager() TCCResourceManager + func (resourceManager TCCResourceManager) BranchCommit(ctx context.Context, request *apis.BranchCommitRequest) (*apis.BranchCommitResponse, error) + func (resourceManager TCCResourceManager) BranchRollback(ctx context.Context, request *apis.BranchRollbackRequest) (*apis.BranchRollbackResponse, error) + func (resourceManager TCCResourceManager) GetBranchType() apis.BranchSession_BranchType + func (resourceManager TCCResourceManager) RegisterResource(resource model.Resource) + func (resourceManager TCCResourceManager) UnregisterResource(resource model.Resource) + type TccProxyService interface + GetTccService func() TccService + type TccService interface + Cancel func(ctx *ctx.BusinessActionContext) bool + Confirm func(ctx *ctx.BusinessActionContext) bool + Try func(ctx *ctx.BusinessActionContext) (bool, error)