You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- package tcc
-
- import (
- "github.com/opentrx/seata-golang/v2/pkg/apis"
- "github.com/opentrx/seata-golang/v2/pkg/client/proxy"
- )
-
- type TCCResource struct {
- ActionName string
- PrepareMethodName string
- CommitMethodName string
- CommitMethod *proxy.MethodDescriptor
- RollbackMethodName string
- RollbackMethod *proxy.MethodDescriptor
- }
-
- func (resource *TCCResource) GetResourceID() string {
- return resource.ActionName
- }
-
- func (resource *TCCResource) GetBranchType() apis.BranchSession_BranchType {
- return apis.TCC
- }
|