databasemocks

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callbacks

type Callbacks struct {
	mock.Mock
}

Callbacks is an autogenerated mock type for the Callbacks type

func NewCallbacks

func NewCallbacks(t interface {
	mock.TestingT
	Cleanup(func())
}) *Callbacks

NewCallbacks creates a new instance of Callbacks. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Callbacks) HashCollectionNSEvent

func (_m *Callbacks) HashCollectionNSEvent(resType database.HashCollectionNS, eventType core.ChangeEventType, namespace string, hash *fftypes.Bytes32)

HashCollectionNSEvent provides a mock function with given fields: resType, eventType, namespace, hash

func (*Callbacks) OrderedCollectionNSEvent

func (_m *Callbacks) OrderedCollectionNSEvent(resType database.OrderedCollectionNS, eventType core.ChangeEventType, namespace string, sequence int64)

OrderedCollectionNSEvent provides a mock function with given fields: resType, eventType, namespace, sequence

func (*Callbacks) OrderedUUIDCollectionNSEvent

func (_m *Callbacks) OrderedUUIDCollectionNSEvent(resType database.OrderedUUIDCollectionNS, eventType core.ChangeEventType, namespace string, id *fftypes.UUID, sequence int64)

OrderedUUIDCollectionNSEvent provides a mock function with given fields: resType, eventType, namespace, id, sequence

func (*Callbacks) UUIDCollectionNSEvent

func (_m *Callbacks) UUIDCollectionNSEvent(resType database.UUIDCollectionNS, eventType core.ChangeEventType, namespace string, id *fftypes.UUID)

UUIDCollectionNSEvent provides a mock function with given fields: resType, eventType, namespace, id

type Plugin

type Plugin struct {
	mock.Mock
}

Plugin is an autogenerated mock type for the Plugin type

func NewPlugin

func NewPlugin(t interface {
	mock.TestingT
	Cleanup(func())
}) *Plugin

NewPlugin creates a new instance of Plugin. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Plugin) Capabilities

func (_m *Plugin) Capabilities() *database.Capabilities

Capabilities provides a mock function with given fields:

func (*Plugin) DeleteBlob

func (_m *Plugin) DeleteBlob(ctx context.Context, sequence int64) error

DeleteBlob provides a mock function with given fields: ctx, sequence

func (*Plugin) DeleteContractAPI

func (_m *Plugin) DeleteContractAPI(ctx context.Context, namespace string, id *fftypes.UUID) error

DeleteContractAPI provides a mock function with given fields: ctx, namespace, id

func (*Plugin) DeleteContractListenerByID

func (_m *Plugin) DeleteContractListenerByID(ctx context.Context, namespace string, id *fftypes.UUID) error

DeleteContractListenerByID provides a mock function with given fields: ctx, namespace, id

func (*Plugin) DeleteData

func (_m *Plugin) DeleteData(ctx context.Context, namespace string, id *fftypes.UUID) error

DeleteData provides a mock function with given fields: ctx, namespace, id

func (*Plugin) DeleteFFI

func (_m *Plugin) DeleteFFI(ctx context.Context, namespace string, id *fftypes.UUID) error

DeleteFFI provides a mock function with given fields: ctx, namespace, id

func (*Plugin) DeleteNonce

func (_m *Plugin) DeleteNonce(ctx context.Context, hash *fftypes.Bytes32) error

DeleteNonce provides a mock function with given fields: ctx, hash

func (*Plugin) DeleteOffset

func (_m *Plugin) DeleteOffset(ctx context.Context, t fftypes.FFEnum, name string) error

DeleteOffset provides a mock function with given fields: ctx, t, name

func (*Plugin) DeleteSubscriptionByID

func (_m *Plugin) DeleteSubscriptionByID(ctx context.Context, namespace string, id *fftypes.UUID) error

DeleteSubscriptionByID provides a mock function with given fields: ctx, namespace, id

func (*Plugin) DeleteTokenApprovals

func (_m *Plugin) DeleteTokenApprovals(ctx context.Context, namespace string, poolID *fftypes.UUID) error

DeleteTokenApprovals provides a mock function with given fields: ctx, namespace, poolID

func (*Plugin) DeleteTokenBalances

func (_m *Plugin) DeleteTokenBalances(ctx context.Context, namespace string, poolID *fftypes.UUID) error

DeleteTokenBalances provides a mock function with given fields: ctx, namespace, poolID

func (*Plugin) DeleteTokenPool

func (_m *Plugin) DeleteTokenPool(ctx context.Context, namespace string, id *fftypes.UUID) error

DeleteTokenPool provides a mock function with given fields: ctx, namespace, id

func (*Plugin) DeleteTokenTransfers

func (_m *Plugin) DeleteTokenTransfers(ctx context.Context, namespace string, poolID *fftypes.UUID) error

DeleteTokenTransfers provides a mock function with given fields: ctx, namespace, poolID

func (*Plugin) GetBatchByID

func (_m *Plugin) GetBatchByID(ctx context.Context, namespace string, id *fftypes.UUID) (*core.BatchPersisted, error)

GetBatchByID provides a mock function with given fields: ctx, namespace, id

func (*Plugin) GetBatchIDsForDataAttachments

func (_m *Plugin) GetBatchIDsForDataAttachments(ctx context.Context, namespace string, dataIDs []*fftypes.UUID) ([]*fftypes.UUID, error)

GetBatchIDsForDataAttachments provides a mock function with given fields: ctx, namespace, dataIDs

func (*Plugin) GetBatchIDsForMessages

func (_m *Plugin) GetBatchIDsForMessages(ctx context.Context, namespace string, msgIDs []*fftypes.UUID) ([]*fftypes.UUID, error)

GetBatchIDsForMessages provides a mock function with given fields: ctx, namespace, msgIDs

func (*Plugin) GetBatches

func (_m *Plugin) GetBatches(ctx context.Context, namespace string, filter ffapi.Filter) ([]*core.BatchPersisted, *ffapi.FilterResult, error)

GetBatches provides a mock function with given fields: ctx, namespace, filter

func (*Plugin) GetBlobs

func (_m *Plugin) GetBlobs(ctx context.Context, namespace string, filter ffapi.Filter) ([]*core.Blob, *ffapi.FilterResult, error)

GetBlobs provides a mock function with given fields: ctx, namespace, filter

func (*Plugin) GetBlockchainEventByID

func (_m *Plugin) GetBlockchainEventByID(ctx context.Context, namespace string, id *fftypes.UUID) (*core.BlockchainEvent, error)

GetBlockchainEventByID provides a mock function with given fields: ctx, namespace, id

func (*Plugin) GetBlockchainEventByProtocolID

func (_m *Plugin) GetBlockchainEventByProtocolID(ctx context.Context, namespace string, listener *fftypes.UUID, protocolID string) (*core.BlockchainEvent, error)

GetBlockchainEventByProtocolID provides a mock function with given fields: ctx, namespace, listener, protocolID

func (*Plugin) GetBlockchainEvents

func (_m *Plugin) GetBlockchainEvents(ctx context.Context, namespace string, filter ffapi.Filter) ([]*core.BlockchainEvent, *ffapi.FilterResult, error)

GetBlockchainEvents provides a mock function with given fields: ctx, namespace, filter

func (*Plugin) GetChartHistogram

func (_m *Plugin) GetChartHistogram(ctx context.Context, namespace string, intervals []core.ChartHistogramInterval, collection database.CollectionName) ([]*core.ChartHistogram, error)

GetChartHistogram provides a mock function with given fields: ctx, namespace, intervals, collection

func (*Plugin) GetContractAPIByID

func (_m *Plugin) GetContractAPIByID(ctx context.Context, namespace string, id *fftypes.UUID) (*core.ContractAPI, error)

GetContractAPIByID provides a mock function with given fields: ctx, namespace, id

func (*Plugin) GetContractAPIByName

func (_m *Plugin) GetContractAPIByName(ctx context.Context, namespace string, name string) (*core.ContractAPI, error)

GetContractAPIByName provides a mock function with given fields: ctx, namespace, name

func (*Plugin) GetContractAPIByNetworkName

func (_m *Plugin) GetContractAPIByNetworkName(ctx context.Context, namespace string, networkName string) (*core.ContractAPI, error)

GetContractAPIByNetworkName provides a mock function with given fields: ctx, namespace, networkName

func (*Plugin) GetContractAPIs

func (_m *Plugin) GetContractAPIs(ctx context.Context, namespace string, filter ffapi.AndFilter) ([]*core.ContractAPI, *ffapi.FilterResult, error)

GetContractAPIs provides a mock function with given fields: ctx, namespace, filter

func (*Plugin) GetContractListener

func (_m *Plugin) GetContractListener(ctx context.Context, namespace string, name string) (*core.ContractListener, error)

GetContractListener provides a mock function with given fields: ctx, namespace, name

func (*Plugin) GetContractListenerByBackendID

func (_m *Plugin) GetContractListenerByBackendID(ctx context.Context, namespace string, id string) (*core.ContractListener, error)

GetContractListenerByBackendID provides a mock function with given fields: ctx, namespace, id

func (*Plugin) GetContractListenerByID

func (_m *Plugin) GetContractListenerByID(ctx context.Context, namespace string, id *fftypes.UUID) (*core.ContractListener, error)

GetContractListenerByID provides a mock function with given fields: ctx, namespace, id

func (*Plugin) GetContractListeners

func (_m *Plugin) GetContractListeners(ctx context.Context, namespace string, filter ffapi.Filter) ([]*core.ContractListener, *ffapi.FilterResult, error)

GetContractListeners provides a mock function with given fields: ctx, namespace, filter

func (*Plugin) GetData

func (_m *Plugin) GetData(ctx context.Context, namespace string, filter ffapi.Filter) (core.DataArray, *ffapi.FilterResult, error)

GetData provides a mock function with given fields: ctx, namespace, filter

func (*Plugin) GetDataByID

func (_m *Plugin) GetDataByID(ctx context.Context, namespace string, id *fftypes.UUID, withValue bool) (*core.Data, error)

GetDataByID provides a mock function with given fields: ctx, namespace, id, withValue

func (*Plugin) GetDataRefs

func (_m *Plugin) GetDataRefs(ctx context.Context, namespace string, filter ffapi.Filter) (core.DataRefs, *ffapi.FilterResult, error)

GetDataRefs provides a mock function with given fields: ctx, namespace, filter

func (*Plugin) GetDataSubPaths

func (_m *Plugin) GetDataSubPaths(ctx context.Context, namespace string, path string) ([]string, error)

GetDataSubPaths provides a mock function with given fields: ctx, namespace, path

func (*Plugin) GetDatatypeByID

func (_m *Plugin) GetDatatypeByID(ctx context.Context, namespace string, id *fftypes.UUID) (*core.Datatype, error)

GetDatatypeByID provides a mock function with given fields: ctx, namespace, id

func (*Plugin) GetDatatypeByName

func (_m *Plugin) GetDatatypeByName(ctx context.Context, namespace string, name string, version string) (*core.Datatype, error)

GetDatatypeByName provides a mock function with given fields: ctx, namespace, name, version

func (*Plugin) GetDatatypes

func (_m *Plugin) GetDatatypes(ctx context.Context, namespace string, filter ffapi.Filter) ([]*core.Datatype, *ffapi.FilterResult, error)

GetDatatypes provides a mock function with given fields: ctx, namespace, filter

func (*Plugin) GetEventByID

func (_m *Plugin) GetEventByID(ctx context.Context, namespace string, id *fftypes.UUID) (*core.Event, error)

GetEventByID provides a mock function with given fields: ctx, namespace, id

func (*Plugin) GetEvents

func (_m *Plugin) GetEvents(ctx context.Context, namespace string, filter ffapi.Filter) ([]*core.Event, *ffapi.FilterResult, error)

GetEvents provides a mock function with given fields: ctx, namespace, filter

func (*Plugin) GetEventsInSequenceRange

func (_m *Plugin) GetEventsInSequenceRange(ctx context.Context, namespace string, filter ffapi.Filter, startSequence int, endSequence int) ([]*core.Event, *ffapi.FilterResult, error)

GetEventsInSequenceRange provides a mock function with given fields: ctx, namespace, filter, startSequence, endSequence

func (*Plugin) GetFFI

func (_m *Plugin) GetFFI(ctx context.Context, namespace string, name string, version string) (*fftypes.FFI, error)

GetFFI provides a mock function with given fields: ctx, namespace, name, version

func (*Plugin) GetFFIByID

func (_m *Plugin) GetFFIByID(ctx context.Context, namespace string, id *fftypes.UUID) (*fftypes.FFI, error)

GetFFIByID provides a mock function with given fields: ctx, namespace, id

func (*Plugin) GetFFIByNetworkName

func (_m *Plugin) GetFFIByNetworkName(ctx context.Context, namespace string, networkName string, version string) (*fftypes.FFI, error)

GetFFIByNetworkName provides a mock function with given fields: ctx, namespace, networkName, version

func (*Plugin) GetFFIErrors

func (_m *Plugin) GetFFIErrors(ctx context.Context, namespace string, filter ffapi.Filter) ([]*fftypes.FFIError, *ffapi.FilterResult, error)

GetFFIErrors provides a mock function with given fields: ctx, namespace, filter

func (*Plugin) GetFFIEvent

func (_m *Plugin) GetFFIEvent(ctx context.Context, namespace string, interfaceID *fftypes.UUID, pathName string) (*fftypes.FFIEvent, error)

GetFFIEvent provides a mock function with given fields: ctx, namespace, interfaceID, pathName

func (*Plugin) GetFFIEvents

func (_m *Plugin) GetFFIEvents(ctx context.Context, namespace string, filter ffapi.Filter) ([]*fftypes.FFIEvent, *ffapi.FilterResult, error)

GetFFIEvents provides a mock function with given fields: ctx, namespace, filter

func (*Plugin) GetFFIMethod

func (_m *Plugin) GetFFIMethod(ctx context.Context, namespace string, interfaceID *fftypes.UUID, pathName string) (*fftypes.FFIMethod, error)

GetFFIMethod provides a mock function with given fields: ctx, namespace, interfaceID, pathName

func (*Plugin) GetFFIMethods

func (_m *Plugin) GetFFIMethods(ctx context.Context, namespace string, filter ffapi.Filter) ([]*fftypes.FFIMethod, *ffapi.FilterResult, error)

GetFFIMethods provides a mock function with given fields: ctx, namespace, filter

func (*Plugin) GetFFIs

func (_m *Plugin) GetFFIs(ctx context.Context, namespace string, filter ffapi.Filter) ([]*fftypes.FFI, *ffapi.FilterResult, error)

GetFFIs provides a mock function with given fields: ctx, namespace, filter

func (*Plugin) GetGroupByHash

func (_m *Plugin) GetGroupByHash(ctx context.Context, namespace string, hash *fftypes.Bytes32) (*core.Group, error)

GetGroupByHash provides a mock function with given fields: ctx, namespace, hash

func (*Plugin) GetGroups

func (_m *Plugin) GetGroups(ctx context.Context, namespace string, filter ffapi.Filter) ([]*core.Group, *ffapi.FilterResult, error)

GetGroups provides a mock function with given fields: ctx, namespace, filter

func (*Plugin) GetIdentities

func (_m *Plugin) GetIdentities(ctx context.Context, namespace string, filter ffapi.Filter) ([]*core.Identity, *ffapi.FilterResult, error)

GetIdentities provides a mock function with given fields: ctx, namespace, filter

func (*Plugin) GetIdentityByDID

func (_m *Plugin) GetIdentityByDID(ctx context.Context, namespace string, did string) (*core.Identity, error)

GetIdentityByDID provides a mock function with given fields: ctx, namespace, did

func (*Plugin) GetIdentityByID

func (_m *Plugin) GetIdentityByID(ctx context.Context, namespace string, id *fftypes.UUID) (*core.Identity, error)

GetIdentityByID provides a mock function with given fields: ctx, namespace, id

func (*Plugin) GetIdentityByName

func (_m *Plugin) GetIdentityByName(ctx context.Context, iType fftypes.FFEnum, namespace string, name string) (*core.Identity, error)

GetIdentityByName provides a mock function with given fields: ctx, iType, namespace, name

func (*Plugin) GetMessageByID

func (_m *Plugin) GetMessageByID(ctx context.Context, namespace string, id *fftypes.UUID) (*core.Message, error)

GetMessageByID provides a mock function with given fields: ctx, namespace, id

func (*Plugin) GetMessageIDs

func (_m *Plugin) GetMessageIDs(ctx context.Context, namespace string, filter ffapi.Filter) ([]*core.IDAndSequence, error)

GetMessageIDs provides a mock function with given fields: ctx, namespace, filter

func (*Plugin) GetMessages

func (_m *Plugin) GetMessages(ctx context.Context, namespace string, filter ffapi.Filter) ([]*core.Message, *ffapi.FilterResult, error)

GetMessages provides a mock function with given fields: ctx, namespace, filter

func (*Plugin) GetMessagesForData

func (_m *Plugin) GetMessagesForData(ctx context.Context, namespace string, dataID *fftypes.UUID, filter ffapi.Filter) ([]*core.Message, *ffapi.FilterResult, error)

GetMessagesForData provides a mock function with given fields: ctx, namespace, dataID, filter

func (*Plugin) GetNamespace

func (_m *Plugin) GetNamespace(ctx context.Context, name string) (*core.Namespace, error)

GetNamespace provides a mock function with given fields: ctx, name

func (*Plugin) GetNextPins

func (_m *Plugin) GetNextPins(ctx context.Context, namespace string, filter ffapi.Filter) ([]*core.NextPin, *ffapi.FilterResult, error)

GetNextPins provides a mock function with given fields: ctx, namespace, filter

func (*Plugin) GetNextPinsForContext

func (_m *Plugin) GetNextPinsForContext(ctx context.Context, namespace string, _a2 *fftypes.Bytes32) ([]*core.NextPin, error)

GetNextPinsForContext provides a mock function with given fields: ctx, namespace, _a2

func (*Plugin) GetNonce

func (_m *Plugin) GetNonce(ctx context.Context, hash *fftypes.Bytes32) (*core.Nonce, error)

GetNonce provides a mock function with given fields: ctx, hash

func (*Plugin) GetNonces

func (_m *Plugin) GetNonces(ctx context.Context, filter ffapi.Filter) ([]*core.Nonce, *ffapi.FilterResult, error)

GetNonces provides a mock function with given fields: ctx, filter

func (*Plugin) GetOffset

func (_m *Plugin) GetOffset(ctx context.Context, t fftypes.FFEnum, name string) (*core.Offset, error)

GetOffset provides a mock function with given fields: ctx, t, name

func (*Plugin) GetOffsets

func (_m *Plugin) GetOffsets(ctx context.Context, filter ffapi.Filter) ([]*core.Offset, *ffapi.FilterResult, error)

GetOffsets provides a mock function with given fields: ctx, filter

func (*Plugin) GetOperationByID

func (_m *Plugin) GetOperationByID(ctx context.Context, namespace string, id *fftypes.UUID) (*core.Operation, error)

GetOperationByID provides a mock function with given fields: ctx, namespace, id

func (*Plugin) GetOperations

func (_m *Plugin) GetOperations(ctx context.Context, namespace string, filter ffapi.Filter) ([]*core.Operation, *ffapi.FilterResult, error)

GetOperations provides a mock function with given fields: ctx, namespace, filter

func (*Plugin) GetPins

func (_m *Plugin) GetPins(ctx context.Context, namespace string, filter ffapi.Filter) ([]*core.Pin, *ffapi.FilterResult, error)

GetPins provides a mock function with given fields: ctx, namespace, filter

func (*Plugin) GetSubscriptionByID

func (_m *Plugin) GetSubscriptionByID(ctx context.Context, namespace string, id *fftypes.UUID) (*core.Subscription, error)

GetSubscriptionByID provides a mock function with given fields: ctx, namespace, id

func (*Plugin) GetSubscriptionByName

func (_m *Plugin) GetSubscriptionByName(ctx context.Context, namespace string, name string) (*core.Subscription, error)

GetSubscriptionByName provides a mock function with given fields: ctx, namespace, name

func (*Plugin) GetSubscriptions

func (_m *Plugin) GetSubscriptions(ctx context.Context, namespace string, filter ffapi.Filter) ([]*core.Subscription, *ffapi.FilterResult, error)

GetSubscriptions provides a mock function with given fields: ctx, namespace, filter

func (*Plugin) GetTokenAccountPools

func (_m *Plugin) GetTokenAccountPools(ctx context.Context, namespace string, key string, filter ffapi.Filter) ([]*core.TokenAccountPool, *ffapi.FilterResult, error)

GetTokenAccountPools provides a mock function with given fields: ctx, namespace, key, filter

func (*Plugin) GetTokenAccounts

func (_m *Plugin) GetTokenAccounts(ctx context.Context, namespace string, filter ffapi.Filter) ([]*core.TokenAccount, *ffapi.FilterResult, error)

GetTokenAccounts provides a mock function with given fields: ctx, namespace, filter

func (*Plugin) GetTokenApprovalByID

func (_m *Plugin) GetTokenApprovalByID(ctx context.Context, namespace string, localID *fftypes.UUID) (*core.TokenApproval, error)

GetTokenApprovalByID provides a mock function with given fields: ctx, namespace, localID

func (*Plugin) GetTokenApprovalByProtocolID

func (_m *Plugin) GetTokenApprovalByProtocolID(ctx context.Context, namespace string, poolID *fftypes.UUID, protocolID string) (*core.TokenApproval, error)

GetTokenApprovalByProtocolID provides a mock function with given fields: ctx, namespace, poolID, protocolID

func (*Plugin) GetTokenApprovals

func (_m *Plugin) GetTokenApprovals(ctx context.Context, namespace string, filter ffapi.Filter) ([]*core.TokenApproval, *ffapi.FilterResult, error)

GetTokenApprovals provides a mock function with given fields: ctx, namespace, filter

func (*Plugin) GetTokenBalance

func (_m *Plugin) GetTokenBalance(ctx context.Context, namespace string, poolID *fftypes.UUID, tokenIndex string, identity string) (*core.TokenBalance, error)

GetTokenBalance provides a mock function with given fields: ctx, namespace, poolID, tokenIndex, identity

func (*Plugin) GetTokenBalances

func (_m *Plugin) GetTokenBalances(ctx context.Context, namespace string, filter ffapi.Filter) ([]*core.TokenBalance, *ffapi.FilterResult, error)

GetTokenBalances provides a mock function with given fields: ctx, namespace, filter

func (*Plugin) GetTokenPool

func (_m *Plugin) GetTokenPool(ctx context.Context, namespace string, name string) (*core.TokenPool, error)

GetTokenPool provides a mock function with given fields: ctx, namespace, name

func (*Plugin) GetTokenPoolByID

func (_m *Plugin) GetTokenPoolByID(ctx context.Context, namespace string, id *fftypes.UUID) (*core.TokenPool, error)

GetTokenPoolByID provides a mock function with given fields: ctx, namespace, id

func (*Plugin) GetTokenPoolByNetworkName

func (_m *Plugin) GetTokenPoolByNetworkName(ctx context.Context, namespace string, networkName string) (*core.TokenPool, error)

GetTokenPoolByNetworkName provides a mock function with given fields: ctx, namespace, networkName

func (*Plugin) GetTokenPools

func (_m *Plugin) GetTokenPools(ctx context.Context, namespace string, filter ffapi.Filter) ([]*core.TokenPool, *ffapi.FilterResult, error)

GetTokenPools provides a mock function with given fields: ctx, namespace, filter

func (*Plugin) GetTokenTransferByID

func (_m *Plugin) GetTokenTransferByID(ctx context.Context, namespace string, localID *fftypes.UUID) (*core.TokenTransfer, error)

GetTokenTransferByID provides a mock function with given fields: ctx, namespace, localID

func (*Plugin) GetTokenTransferByProtocolID

func (_m *Plugin) GetTokenTransferByProtocolID(ctx context.Context, namespace string, poolID *fftypes.UUID, protocolID string) (*core.TokenTransfer, error)

GetTokenTransferByProtocolID provides a mock function with given fields: ctx, namespace, poolID, protocolID

func (*Plugin) GetTokenTransfers

func (_m *Plugin) GetTokenTransfers(ctx context.Context, namespace string, filter ffapi.Filter) ([]*core.TokenTransfer, *ffapi.FilterResult, error)

GetTokenTransfers provides a mock function with given fields: ctx, namespace, filter

func (*Plugin) GetTransactionByID

func (_m *Plugin) GetTransactionByID(ctx context.Context, namespace string, id *fftypes.UUID) (*core.Transaction, error)

GetTransactionByID provides a mock function with given fields: ctx, namespace, id

func (*Plugin) GetTransactions

func (_m *Plugin) GetTransactions(ctx context.Context, namespace string, filter ffapi.Filter) ([]*core.Transaction, *ffapi.FilterResult, error)

GetTransactions provides a mock function with given fields: ctx, namespace, filter

func (*Plugin) GetVerifierByHash

func (_m *Plugin) GetVerifierByHash(ctx context.Context, namespace string, hash *fftypes.Bytes32) (*core.Verifier, error)

GetVerifierByHash provides a mock function with given fields: ctx, namespace, hash

func (*Plugin) GetVerifierByValue

func (_m *Plugin) GetVerifierByValue(ctx context.Context, vType fftypes.FFEnum, namespace string, value string) (*core.Verifier, error)

GetVerifierByValue provides a mock function with given fields: ctx, vType, namespace, value

func (*Plugin) GetVerifiers

func (_m *Plugin) GetVerifiers(ctx context.Context, namespace string, filter ffapi.Filter) ([]*core.Verifier, *ffapi.FilterResult, error)

GetVerifiers provides a mock function with given fields: ctx, namespace, filter

func (*Plugin) Init

func (_m *Plugin) Init(ctx context.Context, _a1 config.Section) error

Init provides a mock function with given fields: ctx, _a1

func (*Plugin) InitConfig

func (_m *Plugin) InitConfig(_a0 config.Section)

InitConfig provides a mock function with given fields: _a0

func (*Plugin) InsertBlob

func (_m *Plugin) InsertBlob(ctx context.Context, blob *core.Blob) error

InsertBlob provides a mock function with given fields: ctx, blob

func (*Plugin) InsertBlobs

func (_m *Plugin) InsertBlobs(ctx context.Context, blobs []*core.Blob) error

InsertBlobs provides a mock function with given fields: ctx, blobs

func (*Plugin) InsertBlockchainEvents

func (_m *Plugin) InsertBlockchainEvents(ctx context.Context, messages []*core.BlockchainEvent, hooks ...database.PostCompletionHook) error

InsertBlockchainEvents provides a mock function with given fields: ctx, messages, hooks

func (*Plugin) InsertContractListener

func (_m *Plugin) InsertContractListener(ctx context.Context, sub *core.ContractListener) error

InsertContractListener provides a mock function with given fields: ctx, sub

func (*Plugin) InsertDataArray

func (_m *Plugin) InsertDataArray(ctx context.Context, data core.DataArray) error

InsertDataArray provides a mock function with given fields: ctx, data

func (*Plugin) InsertEvent

func (_m *Plugin) InsertEvent(ctx context.Context, data *core.Event) error

InsertEvent provides a mock function with given fields: ctx, data

func (*Plugin) InsertMessages

func (_m *Plugin) InsertMessages(ctx context.Context, messages []*core.Message, hooks ...database.PostCompletionHook) error

InsertMessages provides a mock function with given fields: ctx, messages, hooks

func (*Plugin) InsertNextPin

func (_m *Plugin) InsertNextPin(ctx context.Context, nextpin *core.NextPin) error

InsertNextPin provides a mock function with given fields: ctx, nextpin

func (*Plugin) InsertNonce

func (_m *Plugin) InsertNonce(ctx context.Context, nonce *core.Nonce) error

InsertNonce provides a mock function with given fields: ctx, nonce

func (*Plugin) InsertOperation

func (_m *Plugin) InsertOperation(ctx context.Context, operation *core.Operation, hooks ...database.PostCompletionHook) error

InsertOperation provides a mock function with given fields: ctx, operation, hooks

func (*Plugin) InsertOperations

func (_m *Plugin) InsertOperations(ctx context.Context, ops []*core.Operation, hooks ...database.PostCompletionHook) error

InsertOperations provides a mock function with given fields: ctx, ops, hooks

func (*Plugin) InsertOrGetBatch

func (_m *Plugin) InsertOrGetBatch(ctx context.Context, data *core.BatchPersisted) (*core.BatchPersisted, error)

InsertOrGetBatch provides a mock function with given fields: ctx, data

func (*Plugin) InsertOrGetBlockchainEvent

func (_m *Plugin) InsertOrGetBlockchainEvent(ctx context.Context, event *core.BlockchainEvent) (*core.BlockchainEvent, error)

InsertOrGetBlockchainEvent provides a mock function with given fields: ctx, event

func (*Plugin) InsertOrGetContractAPI

func (_m *Plugin) InsertOrGetContractAPI(ctx context.Context, api *core.ContractAPI) (*core.ContractAPI, error)

InsertOrGetContractAPI provides a mock function with given fields: ctx, api

func (*Plugin) InsertOrGetFFI

func (_m *Plugin) InsertOrGetFFI(ctx context.Context, ffi *fftypes.FFI) (*fftypes.FFI, error)

InsertOrGetFFI provides a mock function with given fields: ctx, ffi

func (*Plugin) InsertOrGetTokenPool

func (_m *Plugin) InsertOrGetTokenPool(ctx context.Context, pool *core.TokenPool) (*core.TokenPool, error)

InsertOrGetTokenPool provides a mock function with given fields: ctx, pool

func (*Plugin) InsertOrGetTokenTransfer

func (_m *Plugin) InsertOrGetTokenTransfer(ctx context.Context, approval *core.TokenTransfer) (*core.TokenTransfer, error)

InsertOrGetTokenTransfer provides a mock function with given fields: ctx, approval

func (*Plugin) InsertPins

func (_m *Plugin) InsertPins(ctx context.Context, pins []*core.Pin) error

InsertPins provides a mock function with given fields: ctx, pins

func (*Plugin) InsertTransaction

func (_m *Plugin) InsertTransaction(ctx context.Context, txn *core.Transaction) error

InsertTransaction provides a mock function with given fields: ctx, txn

func (*Plugin) InsertTransactions

func (_m *Plugin) InsertTransactions(ctx context.Context, txns []*core.Transaction) error

InsertTransactions provides a mock function with given fields: ctx, txns

func (*Plugin) Name

func (_m *Plugin) Name() string

Name provides a mock function with given fields:

func (*Plugin) ReplaceMessage

func (_m *Plugin) ReplaceMessage(ctx context.Context, message *core.Message) error

ReplaceMessage provides a mock function with given fields: ctx, message

func (*Plugin) RunAsGroup

func (_m *Plugin) RunAsGroup(ctx context.Context, fn func(context.Context) error) error

RunAsGroup provides a mock function with given fields: ctx, fn

func (*Plugin) SetHandler

func (_m *Plugin) SetHandler(namespace string, handler database.Callbacks)

SetHandler provides a mock function with given fields: namespace, handler

func (*Plugin) UpdateBatch

func (_m *Plugin) UpdateBatch(ctx context.Context, namespace string, id *fftypes.UUID, update ffapi.Update) error

UpdateBatch provides a mock function with given fields: ctx, namespace, id, update

func (*Plugin) UpdateContractListener

func (_m *Plugin) UpdateContractListener(ctx context.Context, namespace string, id *fftypes.UUID, update ffapi.Update) error

UpdateContractListener provides a mock function with given fields: ctx, namespace, id, update

func (*Plugin) UpdateData

func (_m *Plugin) UpdateData(ctx context.Context, namespace string, id *fftypes.UUID, update ffapi.Update) error

UpdateData provides a mock function with given fields: ctx, namespace, id, update

func (*Plugin) UpdateMessage

func (_m *Plugin) UpdateMessage(ctx context.Context, namespace string, id *fftypes.UUID, update ffapi.Update) error

UpdateMessage provides a mock function with given fields: ctx, namespace, id, update

func (*Plugin) UpdateMessages

func (_m *Plugin) UpdateMessages(ctx context.Context, namespace string, filter ffapi.Filter, update ffapi.Update) error

UpdateMessages provides a mock function with given fields: ctx, namespace, filter, update

func (*Plugin) UpdateNextPin

func (_m *Plugin) UpdateNextPin(ctx context.Context, namespace string, sequence int64, update ffapi.Update) error

UpdateNextPin provides a mock function with given fields: ctx, namespace, sequence, update

func (*Plugin) UpdateNonce

func (_m *Plugin) UpdateNonce(ctx context.Context, nonce *core.Nonce) error

UpdateNonce provides a mock function with given fields: ctx, nonce

func (*Plugin) UpdateOffset

func (_m *Plugin) UpdateOffset(ctx context.Context, rowID int64, update ffapi.Update) error

UpdateOffset provides a mock function with given fields: ctx, rowID, update

func (*Plugin) UpdateOperation

func (_m *Plugin) UpdateOperation(ctx context.Context, namespace string, id *fftypes.UUID, filter ffapi.Filter, update ffapi.Update) (bool, error)

UpdateOperation provides a mock function with given fields: ctx, namespace, id, filter, update

func (*Plugin) UpdatePins

func (_m *Plugin) UpdatePins(ctx context.Context, namespace string, filter ffapi.Filter, update ffapi.Update) error

UpdatePins provides a mock function with given fields: ctx, namespace, filter, update

func (*Plugin) UpdateSubscription

func (_m *Plugin) UpdateSubscription(ctx context.Context, namespace string, name string, update ffapi.Update) error

UpdateSubscription provides a mock function with given fields: ctx, namespace, name, update

func (*Plugin) UpdateTokenApprovals

func (_m *Plugin) UpdateTokenApprovals(ctx context.Context, filter ffapi.Filter, update ffapi.Update) error

UpdateTokenApprovals provides a mock function with given fields: ctx, filter, update

func (*Plugin) UpdateTokenBalances

func (_m *Plugin) UpdateTokenBalances(ctx context.Context, transfer *core.TokenTransfer) error

UpdateTokenBalances provides a mock function with given fields: ctx, transfer

func (*Plugin) UpdateTransaction

func (_m *Plugin) UpdateTransaction(ctx context.Context, namespace string, id *fftypes.UUID, update ffapi.Update) error

UpdateTransaction provides a mock function with given fields: ctx, namespace, id, update

func (*Plugin) UpsertContractAPI

func (_m *Plugin) UpsertContractAPI(ctx context.Context, api *core.ContractAPI, optimization database.UpsertOptimization) error

UpsertContractAPI provides a mock function with given fields: ctx, api, optimization

func (*Plugin) UpsertContractListener

func (_m *Plugin) UpsertContractListener(ctx context.Context, sub *core.ContractListener, allowExisting bool) error

UpsertContractListener provides a mock function with given fields: ctx, sub, allowExisting

func (*Plugin) UpsertData

func (_m *Plugin) UpsertData(ctx context.Context, data *core.Data, optimization database.UpsertOptimization) error

UpsertData provides a mock function with given fields: ctx, data, optimization

func (*Plugin) UpsertDatatype

func (_m *Plugin) UpsertDatatype(ctx context.Context, datadef *core.Datatype, allowExisting bool) error

UpsertDatatype provides a mock function with given fields: ctx, datadef, allowExisting

func (*Plugin) UpsertFFI

func (_m *Plugin) UpsertFFI(ctx context.Context, ffi *fftypes.FFI, optimization database.UpsertOptimization) error

UpsertFFI provides a mock function with given fields: ctx, ffi, optimization

func (*Plugin) UpsertFFIError

func (_m *Plugin) UpsertFFIError(ctx context.Context, method *fftypes.FFIError) error

UpsertFFIError provides a mock function with given fields: ctx, method

func (*Plugin) UpsertFFIEvent

func (_m *Plugin) UpsertFFIEvent(ctx context.Context, method *fftypes.FFIEvent) error

UpsertFFIEvent provides a mock function with given fields: ctx, method

func (*Plugin) UpsertFFIMethod

func (_m *Plugin) UpsertFFIMethod(ctx context.Context, method *fftypes.FFIMethod) error

UpsertFFIMethod provides a mock function with given fields: ctx, method

func (*Plugin) UpsertGroup

func (_m *Plugin) UpsertGroup(ctx context.Context, data *core.Group, optimization database.UpsertOptimization) error

UpsertGroup provides a mock function with given fields: ctx, data, optimization

func (*Plugin) UpsertIdentity

func (_m *Plugin) UpsertIdentity(ctx context.Context, data *core.Identity, optimization database.UpsertOptimization) error

UpsertIdentity provides a mock function with given fields: ctx, data, optimization

func (*Plugin) UpsertMessage

func (_m *Plugin) UpsertMessage(ctx context.Context, message *core.Message, optimization database.UpsertOptimization, hooks ...database.PostCompletionHook) error

UpsertMessage provides a mock function with given fields: ctx, message, optimization, hooks

func (*Plugin) UpsertNamespace

func (_m *Plugin) UpsertNamespace(ctx context.Context, data *core.Namespace, allowExisting bool) error

UpsertNamespace provides a mock function with given fields: ctx, data, allowExisting

func (*Plugin) UpsertOffset

func (_m *Plugin) UpsertOffset(ctx context.Context, data *core.Offset, allowExisting bool) error

UpsertOffset provides a mock function with given fields: ctx, data, allowExisting

func (*Plugin) UpsertPin

func (_m *Plugin) UpsertPin(ctx context.Context, parked *core.Pin) error

UpsertPin provides a mock function with given fields: ctx, parked

func (*Plugin) UpsertSubscription

func (_m *Plugin) UpsertSubscription(ctx context.Context, data *core.Subscription, allowExisting bool) error

UpsertSubscription provides a mock function with given fields: ctx, data, allowExisting

func (*Plugin) UpsertTokenApproval

func (_m *Plugin) UpsertTokenApproval(ctx context.Context, approval *core.TokenApproval) error

UpsertTokenApproval provides a mock function with given fields: ctx, approval

func (*Plugin) UpsertTokenPool

func (_m *Plugin) UpsertTokenPool(ctx context.Context, pool *core.TokenPool, optimization database.UpsertOptimization) error

UpsertTokenPool provides a mock function with given fields: ctx, pool, optimization

func (*Plugin) UpsertVerifier

func (_m *Plugin) UpsertVerifier(ctx context.Context, data *core.Verifier, optimization database.UpsertOptimization) error

UpsertVerifier provides a mock function with given fields: ctx, data, optimization

Jump to

Keyboard shortcuts

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