Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamicSession ¶
type DynamicSession func() *Session
return the session of the transaction manager
type SessionStack ¶
type SessionStack interface {
Pop() (*Session, bool)
Push(node *Session)
Top() (*Session, bool)
Size() int
IsEmpty() bool
}
routine's session stack interface
func NewSessionStack ¶
func NewSessionStack() SessionStack
type SynchronizeManager ¶
type SynchronizeManager interface {
Get() *Session
Remove()
Add(node *Session)
}
session synchronize manager interface
func NewSynchronizeManager ¶
func NewSynchronizeManager(engineInterface EngineInterface) SynchronizeManager
type TransactionFunc ¶
type TransactionFunc func(transaction *Transaction) error
transaction function
type TransactionManager ¶
type TransactionManager interface {
SessionFunc() DynamicSession
Do(do TransactionFunc, transactionDefinition ...int) error
}
transaction manager interface
func New ¶
func New(param EngineInterface) TransactionManager
Click to show internal directories.
Click to hide internal directories.