transaction

package
v0.0.0-...-be0592b Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func New

func (*Manager) Abort

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

func (*Manager) Commit

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

func (*Manager) CreateTransaction

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

func (*Manager) GetSession

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

func (*Manager) Publish

func (tm *Manager) Publish()

func (*Manager) Run

func (tm *Manager) Run() error

func (*Manager) Subscribe

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

func (*Manager) UnSubscribe

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

type Session

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

Session transaction session

Jump to

Keyboard shortcuts

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