Documentation ¶
Index ¶
- Constants
- type BusinessActionContext
- type RootContext
- func (c *RootContext) Bind(xid string)
- func (c *RootContext) BindGlobalLockFlag()
- func (c *RootContext) BindInterceptorType(xidType string)
- func (c *RootContext) BindInterceptorTypeWithBranchType(xid string, branchType meta.BranchType)
- func (c *RootContext) Get(key string) (value interface{}, exists bool)
- func (c *RootContext) GetXID() string
- func (c *RootContext) GetXIDInterceptorType() string
- func (c *RootContext) InGlobalTransaction() bool
- func (c *RootContext) RequireGlobalLock() bool
- func (c *RootContext) Set(key string, value interface{})
- func (c *RootContext) Unbind() string
- func (c *RootContext) UnbindGlobalLockFlag()
- func (c *RootContext) UnbindInterceptorType() string
Constants ¶
View Source
const ( KEY_XID = "TX_XID" KEY_XID_INTERCEPTOR_TYPE = "tx-xid-interceptor-type" KEY_GLOBAL_LOCK_FLAG = "TX_LOCK" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BusinessActionContext ¶
type BusinessActionContext struct { *RootContext XID string BranchID string ActionName string ActionContext map[string]interface{} }
type RootContext ¶
func NewRootContext ¶
func NewRootContext(ctx context.Context) *RootContext
func (*RootContext) Bind ¶
func (c *RootContext) Bind(xid string)
func (*RootContext) BindGlobalLockFlag ¶
func (c *RootContext) BindGlobalLockFlag()
func (*RootContext) BindInterceptorType ¶
func (c *RootContext) BindInterceptorType(xidType string)
func (*RootContext) BindInterceptorTypeWithBranchType ¶
func (c *RootContext) BindInterceptorTypeWithBranchType(xid string, branchType meta.BranchType)
func (*RootContext) Get ¶
func (c *RootContext) Get(key string) (value interface{}, exists bool)
func (*RootContext) GetXID ¶
func (c *RootContext) GetXID() string
func (*RootContext) GetXIDInterceptorType ¶
func (c *RootContext) GetXIDInterceptorType() string
func (*RootContext) InGlobalTransaction ¶
func (c *RootContext) InGlobalTransaction() bool
func (*RootContext) RequireGlobalLock ¶
func (c *RootContext) RequireGlobalLock() bool
func (*RootContext) Set ¶
func (c *RootContext) Set(key string, value interface{})
func (*RootContext) Unbind ¶
func (c *RootContext) Unbind() string
func (*RootContext) UnbindGlobalLockFlag ¶
func (c *RootContext) UnbindGlobalLockFlag()
func (*RootContext) UnbindInterceptorType ¶
func (c *RootContext) UnbindInterceptorType() string
Click to show internal directories.
Click to hide internal directories.