Documentation ¶
Index ¶
- type Manager
- func (_m *Manager) BlobsEnabled() bool
- func (_m *Manager) CheckDatatype(ctx context.Context, datatype *core.Datatype) error
- func (_m *Manager) DownloadBlob(ctx context.Context, dataID string) (*core.Blob, io.ReadCloser, error)
- func (_m *Manager) GetMessageDataCached(ctx context.Context, msg *core.Message, options ...data.CacheReadOption) (core.DataArray, bool, error)
- func (_m *Manager) GetMessageWithDataCached(ctx context.Context, msgID *fftypes.UUID, options ...data.CacheReadOption) (*core.Message, core.DataArray, bool, error)
- func (_m *Manager) HydrateBatch(ctx context.Context, persistedBatch *core.BatchPersisted) (*core.Batch, error)
- func (_m *Manager) PeekMessageCache(ctx context.Context, id *fftypes.UUID, options ...data.CacheReadOption) (*core.Message, core.DataArray)
- func (_m *Manager) ResolveInlineData(ctx context.Context, msg *data.NewMessage) error
- func (_m *Manager) Start()
- func (_m *Manager) UpdateMessageCache(msg *core.Message, _a1 core.DataArray)
- func (_m *Manager) UpdateMessageIfCached(ctx context.Context, msg *core.Message)
- func (_m *Manager) UpdateMessageStateIfCached(ctx context.Context, id *fftypes.UUID, state fftypes.FFEnum, ...)
- func (_m *Manager) UploadBlob(ctx context.Context, inData *core.DataRefOrValue, blob *ffapi.Multipart, ...) (*core.Data, error)
- func (_m *Manager) UploadJSON(ctx context.Context, inData *core.DataRefOrValue) (*core.Data, error)
- func (_m *Manager) ValidateAll(ctx context.Context, _a1 core.DataArray) (bool, error)
- func (_m *Manager) WaitStop()
- func (_m *Manager) WriteNewMessage(ctx context.Context, newMsg *data.NewMessage) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
Manager is an autogenerated mock type for the Manager type
func NewManager ¶ added in v1.1.2
func NewManager(t mockConstructorTestingTNewManager) *Manager
NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Manager) BlobsEnabled ¶ added in v1.1.0
BlobsEnabled provides a mock function with given fields:
func (*Manager) CheckDatatype ¶
CheckDatatype provides a mock function with given fields: ctx, datatype
func (*Manager) DownloadBlob ¶ added in v1.0.0
func (_m *Manager) DownloadBlob(ctx context.Context, dataID string) (*core.Blob, io.ReadCloser, error)
DownloadBlob provides a mock function with given fields: ctx, dataID
func (*Manager) GetMessageDataCached ¶ added in v0.14.0
func (_m *Manager) GetMessageDataCached(ctx context.Context, msg *core.Message, options ...data.CacheReadOption) (core.DataArray, bool, error)
GetMessageDataCached provides a mock function with given fields: ctx, msg, options
func (*Manager) GetMessageWithDataCached ¶ added in v0.14.0
func (_m *Manager) GetMessageWithDataCached(ctx context.Context, msgID *fftypes.UUID, options ...data.CacheReadOption) (*core.Message, core.DataArray, bool, error)
GetMessageWithDataCached provides a mock function with given fields: ctx, msgID, options
func (*Manager) HydrateBatch ¶ added in v0.14.0
func (_m *Manager) HydrateBatch(ctx context.Context, persistedBatch *core.BatchPersisted) (*core.Batch, error)
HydrateBatch provides a mock function with given fields: ctx, persistedBatch
func (*Manager) PeekMessageCache ¶ added in v0.14.0
func (_m *Manager) PeekMessageCache(ctx context.Context, id *fftypes.UUID, options ...data.CacheReadOption) (*core.Message, core.DataArray)
PeekMessageCache provides a mock function with given fields: ctx, id, options
func (*Manager) ResolveInlineData ¶ added in v0.14.0
ResolveInlineData provides a mock function with given fields: ctx, msg
func (*Manager) Start ¶ added in v1.1.0
func (_m *Manager) Start()
Start provides a mock function with given fields:
func (*Manager) UpdateMessageCache ¶ added in v0.14.0
UpdateMessageCache provides a mock function with given fields: msg, _a1
func (*Manager) UpdateMessageIfCached ¶ added in v0.14.0
UpdateMessageIfCached provides a mock function with given fields: ctx, msg
func (*Manager) UpdateMessageStateIfCached ¶ added in v1.0.0
func (_m *Manager) UpdateMessageStateIfCached(ctx context.Context, id *fftypes.UUID, state fftypes.FFEnum, confirmed *fftypes.FFTime)
UpdateMessageStateIfCached provides a mock function with given fields: ctx, id, state, confirmed
func (*Manager) UploadBlob ¶ added in v1.0.0
func (_m *Manager) UploadBlob(ctx context.Context, inData *core.DataRefOrValue, blob *ffapi.Multipart, autoMeta bool) (*core.Data, error)
UploadBlob provides a mock function with given fields: ctx, inData, blob, autoMeta
func (*Manager) UploadJSON ¶
UploadJSON provides a mock function with given fields: ctx, inData
func (*Manager) ValidateAll ¶
ValidateAll provides a mock function with given fields: ctx, _a1
func (*Manager) WaitStop ¶ added in v0.14.0
func (_m *Manager) WaitStop()
WaitStop provides a mock function with given fields:
func (*Manager) WriteNewMessage ¶ added in v0.14.0
WriteNewMessage provides a mock function with given fields: ctx, newMsg