Documentation
¶
Index ¶
- type ExecutorFactory
- type Manager
- func (m *Manager) CommitAndDelete(ctx context.Context, session *Session) (*cypher.ExecuteResult, error)
- func (m *Manager) Delete(txID string)
- func (m *Manager) ExecuteInSession(ctx context.Context, session *Session, query string, ...) (*cypher.ExecuteResult, error)
- func (m *Manager) Get(txID string) (*Session, bool)
- func (m *Manager) GetForOwner(txID string, owner string) (*Session, bool)
- func (m *Manager) Open(ctx context.Context, dbName string) (*Session, error)
- func (m *Manager) OpenForOwner(ctx context.Context, dbName string, owner string) (*Session, error)
- func (m *Manager) OpenWithExecutor(ctx context.Context, dbName string, executor *cypher.StorageExecutor) (*Session, error)
- func (m *Manager) OpenWithExecutorForOwner(ctx context.Context, dbName string, executor *cypher.StorageExecutor, ...) (*Session, error)
- func (m *Manager) RollbackAndDelete(ctx context.Context, session *Session) error
- func (m *Manager) SetTerminalErrorObserver(observer func(*Session, error))
- func (m *Manager) Touch(session *Session)
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecutorFactory ¶
type ExecutorFactory func(dbName string) (*cypher.StorageExecutor, error)
ExecutorFactory creates a fresh executor scoped to a database. Each explicit transaction gets its own executor instance.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager tracks explicit transaction sessions and lifecycle operations.
func NewManager ¶
func NewManager(ttl time.Duration, factory ExecutorFactory) *Manager
func (*Manager) CommitAndDelete ¶
func (*Manager) ExecuteInSession ¶
func (*Manager) GetForOwner ¶
func (*Manager) OpenForOwner ¶
func (*Manager) OpenWithExecutor ¶
func (m *Manager) OpenWithExecutor(ctx context.Context, dbName string, executor *cypher.StorageExecutor) (*Session, error)
OpenWithExecutor opens a transaction session using a pre-built executor. This is used when executor construction depends on request context (for example forwarding auth to remote composite constituents).
func (*Manager) OpenWithExecutorForOwner ¶
func (*Manager) RollbackAndDelete ¶
func (*Manager) SetTerminalErrorObserver ¶
Click to show internal directories.
Click to hide internal directories.