|
| 1 | +package memstore |
| 2 | + |
| 3 | +import ( |
| 4 | + "context" |
| 5 | + "time" |
| 6 | + |
| 7 | + "github.com/golang/geo/s2" |
| 8 | + dsserr "github.com/interuss/dss/pkg/errors" |
| 9 | + dssmodels "github.com/interuss/dss/pkg/models" |
| 10 | + ridmodels "github.com/interuss/dss/pkg/rid/models" |
| 11 | + "github.com/interuss/stacktrace" |
| 12 | +) |
| 13 | + |
| 14 | +func (r *repo) GetSubscription(_ context.Context, id dssmodels.ID) (*ridmodels.Subscription, error) { |
| 15 | + return nil, stacktrace.NewErrorWithCode(dsserr.NotImplemented, "GetSubscription not implemented for memstore") |
| 16 | +} |
| 17 | + |
| 18 | +func (r *repo) DeleteSubscription(_ context.Context, sub *ridmodels.Subscription) (*ridmodels.Subscription, error) { |
| 19 | + return nil, stacktrace.NewErrorWithCode(dsserr.NotImplemented, "DeleteSubscription not implemented for memstore") |
| 20 | +} |
| 21 | + |
| 22 | +func (r *repo) InsertSubscription(_ context.Context, sub *ridmodels.Subscription) (*ridmodels.Subscription, error) { |
| 23 | + return nil, stacktrace.NewErrorWithCode(dsserr.NotImplemented, "InsertSubscription not implemented for memstore") |
| 24 | +} |
| 25 | + |
| 26 | +func (r *repo) UpdateSubscription(_ context.Context, sub *ridmodels.Subscription) (*ridmodels.Subscription, error) { |
| 27 | + return nil, stacktrace.NewErrorWithCode(dsserr.NotImplemented, "UpdateSubscription not implemented for memstore") |
| 28 | +} |
| 29 | + |
| 30 | +func (r *repo) SearchSubscriptions(_ context.Context, cells s2.CellUnion) ([]*ridmodels.Subscription, error) { |
| 31 | + return nil, stacktrace.NewErrorWithCode(dsserr.NotImplemented, "SearchSubscriptions not implemented for memstore") |
| 32 | +} |
| 33 | + |
| 34 | +func (r *repo) SearchSubscriptionsByOwner(_ context.Context, cells s2.CellUnion, owner dssmodels.Owner) ([]*ridmodels.Subscription, error) { |
| 35 | + return nil, stacktrace.NewErrorWithCode(dsserr.NotImplemented, "SearchSubscriptionsByOwner not implemented for memstore") |
| 36 | +} |
| 37 | + |
| 38 | +func (r *repo) UpdateNotificationIdxsInCells(_ context.Context, cells s2.CellUnion) ([]*ridmodels.Subscription, error) { |
| 39 | + return nil, stacktrace.NewErrorWithCode(dsserr.NotImplemented, "UpdateNotificationIdxsInCells not implemented for memstore") |
| 40 | +} |
| 41 | + |
| 42 | +func (r *repo) MaxSubscriptionCountInCellsByOwner(_ context.Context, cells s2.CellUnion, owner dssmodels.Owner) (int, error) { |
| 43 | + return 0, stacktrace.NewErrorWithCode(dsserr.NotImplemented, "MaxSubscriptionCountInCellsByOwner not implemented for memstore") |
| 44 | +} |
| 45 | + |
| 46 | +func (r *repo) ListExpiredSubscriptions(_ context.Context, writer string, threshold time.Time) ([]*ridmodels.Subscription, error) { |
| 47 | + return nil, stacktrace.NewErrorWithCode(dsserr.NotImplemented, "ListExpiredSubscriptions not implemented for memstore") |
| 48 | +} |
| 49 | + |
| 50 | +func (r *repo) CountSubscriptions(_ context.Context) (int64, error) { |
| 51 | + return 0, stacktrace.NewErrorWithCode(dsserr.NotImplemented, "CountSubscriptions not implemented for memstore") |
| 52 | +} |
0 commit comments