manager

package
v0.0.0-...-7378411 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	Txninst *types.Transaction
	mongobyc.Session
}

type TxnManager

type TxnManager struct {
	// contains filtered or unexported fields
}

func (*TxnManager) Abort

func (tm *TxnManager) Abort(txnID string) error

func (*TxnManager) Commit

func (tm *TxnManager) Commit(txnID string) error

func (*TxnManager) CreateTransaction

func (tm *TxnManager) CreateTransaction(requestID string) (*Session, error)

func (*TxnManager) GetSession

func (tm *TxnManager) GetSession(txnID string) *Session

func (*TxnManager) Publish

func (tm *TxnManager) Publish()

func (*TxnManager) Run

func (tm *TxnManager) Run() error

func (*TxnManager) Subscribe

func (tm *TxnManager) Subscribe(ch chan<- *types.Transaction)

func (*TxnManager) UnSubscribe

func (tm *TxnManager) UnSubscribe(ch chan<- *types.Transaction)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL