Documentation ¶ Index ¶ func MustBeIn(m State) type Mgr type State Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func MustBeIn ¶ func MustBeIn(m State) Types ¶ type Mgr ¶ type Mgr interface { // New creates a new State object, for the purposes of executing // queries within a single context. New() State } Mgr manages the initialisation of transaction state objects. Mgr instances may exist in multiple goroutines. type State ¶ type State interface { WithTxn(fn func() error) error InTxn() bool } State represents the transaction state for a single request. A State object instance should exist only within a single goroutine. It MUST NOT be shared between goroutines. Source Files ¶ View all Source files state.go Click to show internal directories. Click to hide internal directories.