Documentation
¶
Index ¶
- type Entity
- type Storage
- func (_m *Storage[E]) Create(ctx context.Context, ve E) error
- func (_m *Storage[E]) Delete(ctx context.Context, id string) error
- func (_m *Storage[E]) DeleteAll(ctx context.Context, ids ...string) error
- func (_m *Storage[E]) Find(ctx context.Context, filter map[string]interface{}, paging *v1.Paging) ([]E, *uint64, error)
- func (_m *Storage[E]) Get(ctx context.Context, id string) (E, error)
- func (_m *Storage[E]) GetHistory(ctx context.Context, id string, at time.Time, ve E) error
- func (_m *Storage[E]) GetHistoryCreated(ctx context.Context, id string, ve E) error
- func (_m *Storage[E]) Update(ctx context.Context, ve E) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entity ¶ added in v0.10.0
Entity is an autogenerated mock type for the Entity type
func NewEntity ¶ added in v0.10.0
NewEntity creates a new instance of Entity. 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 (*Entity) APIVersion ¶ added in v0.10.0
APIVersion provides a mock function with no fields
type Storage ¶
Storage is an autogenerated mock type for the Storage type
func NewStorage ¶ added in v0.9.0
NewStorage creates a new instance of Storage. 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 (*Storage[E]) DeleteAll ¶ added in v0.11.3
DeleteAll provides a mock function with given fields: ctx, ids
func (*Storage[E]) Find ¶
func (_m *Storage[E]) Find(ctx context.Context, filter map[string]interface{}, paging *v1.Paging) ([]E, *uint64, error)
Find provides a mock function with given fields: ctx, filter, paging
func (*Storage[E]) GetHistory ¶ added in v0.7.0
GetHistory provides a mock function with given fields: ctx, id, at, ve
func (*Storage[E]) GetHistoryCreated ¶ added in v0.10.0
GetHistoryCreated provides a mock function with given fields: ctx, id, ve