-
Notifications
You must be signed in to change notification settings - Fork 0
/
item_store.go
37 lines (29 loc) · 1.33 KB
/
item_store.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package unimplemented
import (
"context"
v1 "github.com/lusis/statusthing/gen/go/statusthing/v1"
"github.com/lusis/statusthing/internal/filters"
"github.com/lusis/statusthing/internal/serrors"
)
// ItemStore ...
type ItemStore struct{}
// StoreItem stores the provided [statusthingv1.Item]
func (is *ItemStore) StoreItem(ctx context.Context, item *v1.Item) (*v1.Item, error) { // nolint: revive
return nil, serrors.ErrNotImplemented
}
// GetItem gets a [statusthingv1.Item] by its id
func (is *ItemStore) GetItem(ctx context.Context, itemID string) (*v1.Item, error) { // nolint: revive
return nil, serrors.ErrNotImplemented
}
// FindItems returns all known [statusthingv1.Item] optionally filtered by the provided [filters.FilterOption]
func (is *ItemStore) FindItems(ctx context.Context, opts ...filters.FilterOption) ([]*v1.Item, error) { // nolint: revive
return nil, serrors.ErrNotImplemented
}
// UpdateItem updates the [statusthingv1.Item] by its id with the provided [filters.FilterOption]
func (is *ItemStore) UpdateItem(ctx context.Context, itemID string, opts ...filters.FilterOption) error { // nolint: revive
return serrors.ErrNotImplemented
}
// DeleteItem deletes the [statusthingv1.Item] by its id
func (is *ItemStore) DeleteItem(ctx context.Context, itemID string) error { // nolint: revive
return serrors.ErrNotImplemented
}