Documentation ¶
Overview ¶
Package dsl is base package for mocks of DSL transaction creators. The main purpose of these mock is to simulate DSL usage and to record called steps (transaction operations).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommitFunc ¶
CommitFunc is function called from inside DSL to trigger commit processing(applying TxnOp-s retrieved by DSL,...) in TxnTracker
type CommonMockDSL ¶
type CommonMockDSL struct { // List of transaction operations in the order as they were called. Ops []TxnOp // CommitFunc is function called from inside DSL to trigger commit processing(applying TxnOp-s retrieved by DSL,...) // in TxnTracker CommitFunc CommitFunc }
CommonMockDSL holds common data for all mocked DSLs
type Reply ¶
type Reply struct {
Err error
}
Reply interface allows to wait for a reply to previously called Send() and extract the result from it (success/error).
func (Reply) ReceiveReply ¶
ReceiveReply waits for a reply to previously called Send() and returns the result (error or nil).
Click to show internal directories.
Click to hide internal directories.