Documentation ¶
Index ¶
- type SJFStore
- func (store *SJFStore) CountDocuments(ctx context.Context, filter bson.M) (int64, error)
- func (store *SJFStore) Create(ctx context.Context, sjf *model.SJF) (*model.SJF, error)
- func (store *SJFStore) Delete(ctx context.Context, filters *bson.M) error
- func (store *SJFStore) Get(ctx context.Context, filters *primitive.M) (*model.SJF, error)
- func (store *SJFStore) List(ctx context.Context, filters *bson.M, findOptions *options.FindOptions) ([]*model.SJF, error)
- func (store *SJFStore) Update(ctx context.Context, filters *bson.M, updates *bson.M) error
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SJFStore ¶
type SJFStore struct {
// contains filtered or unexported fields
}
store is a struct that will implement the Store interface
func (*SJFStore) CountDocuments ¶
CountDocuments returns the number of documents in the SJF collection
type Store ¶
type Store interface { Create(ctx context.Context, sjf *model.SJF) (*model.SJF, error) List(ctx context.Context, filters *bson.M, findOptions *options.FindOptions) ([]*model.SJF, error) Get(ctx context.Context, filters *bson.M) (*model.SJF, error) Update(ctx context.Context, filters *bson.M, updates *bson.M) error Delete(ctx context.Context, filters *bson.M) error CountDocuments(ctx context.Context, filter bson.M) (int64, error) }
Store is an interface that defines the methods that should be implemented by the store struct
Click to show internal directories.
Click to hide internal directories.