Documentation
¶
Index ¶
- type TxStore
- func (_m *TxStore) AddTx(tx pb.Tx) error
- func (_m *TxStore) AllTxsForStateURI(stateURI string, fromTxID state.Version) (tree.TxIterator, error)
- func (_m *TxStore) AllValidTxsForStateURIOrdered(stateURI string, fromTxID state.Version) tree.TxIterator
- func (_m *TxStore) Close()
- func (_m *TxStore) DebugPrint()
- func (_m *TxStore) FetchTx(stateURI string, txID state.Version) (pb.Tx, error)
- func (_m *TxStore) IsStateURIWithData(stateURI string) (bool, error)
- func (_m *TxStore) Leaves(stateURI string) ([]state.Version, error)
- func (_m *TxStore) MarkLeaf(stateURI string, txID state.Version) error
- func (_m *TxStore) OnNewStateURIWithData(fn tree.NewStateURIWithDataCallback)
- func (_m *TxStore) RemoveTx(stateURI string, txID state.Version) error
- func (_m *TxStore) Start() error
- func (_m *TxStore) StateURIsWithData() (types.Set[string], error)
- func (_m *TxStore) TxExists(stateURI string, txID state.Version) (bool, error)
- func (_m *TxStore) UnmarkLeaf(stateURI string, txID state.Version) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TxStore ¶
TxStore is an autogenerated mock type for the TxStore type
func NewTxStore ¶
func NewTxStore(t mockConstructorTestingTNewTxStore) *TxStore
NewTxStore creates a new instance of TxStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TxStore) AllTxsForStateURI ¶
func (_m *TxStore) AllTxsForStateURI(stateURI string, fromTxID state.Version) (tree.TxIterator, error)
AllTxsForStateURI provides a mock function with given fields: stateURI, fromTxID
func (*TxStore) AllValidTxsForStateURIOrdered ¶
func (_m *TxStore) AllValidTxsForStateURIOrdered(stateURI string, fromTxID state.Version) tree.TxIterator
AllValidTxsForStateURIOrdered provides a mock function with given fields: stateURI, fromTxID
func (*TxStore) Close ¶
func (_m *TxStore) Close()
Close provides a mock function with given fields:
func (*TxStore) DebugPrint ¶
func (_m *TxStore) DebugPrint()
DebugPrint provides a mock function with given fields:
func (*TxStore) IsStateURIWithData ¶
IsStateURIWithData provides a mock function with given fields: stateURI
func (*TxStore) OnNewStateURIWithData ¶
func (_m *TxStore) OnNewStateURIWithData(fn tree.NewStateURIWithDataCallback)
OnNewStateURIWithData provides a mock function with given fields: fn
func (*TxStore) StateURIsWithData ¶
StateURIsWithData provides a mock function with given fields: