Documentation ¶
Index ¶
- type Store
- func (s *Store) Count(ctx context.Context, filter resourcebus.QueryFilter) (int, error)
- func (s *Store) Create(ctx context.Context, res resourcebus.Resource) error
- func (s *Store) Delete(ctx context.Context, res resourcebus.Resource) error
- func (s *Store) Query(ctx context.Context, filter resourcebus.QueryFilter, orderBy order.By, ...) ([]resourcebus.Resource, error)
- func (s *Store) QueryByID(ctx context.Context, resourceID uuid.UUID) (resourcebus.Resource, error)
- func (s *Store) QueryByName(ctx context.Context, name string) (resourcebus.Resource, error)
- func (s *Store) Update(ctx context.Context, res resourcebus.Resource) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store manages the set of APIs for resource database access.
func (*Store) Count ¶
func (s *Store) Count(ctx context.Context, filter resourcebus.QueryFilter) (int, error)
Count returns the total number of resources in the DB.
func (*Store) Query ¶
func (s *Store) Query(ctx context.Context, filter resourcebus.QueryFilter, orderBy order.By, pageNumber int, rowsPerPage int) ([]resourcebus.Resource, error)
Query retrieves a list of existing resources from the database.
func (*Store) QueryByName ¶
QueryByName gets the specified resource from the database by email.
Click to show internal directories.
Click to hide internal directories.