Documentation ¶
Index ¶
- type Store
- func (s *Store[T]) Create(request T, ctx context.Context) (T, error)
- func (s *Store[T]) Delete(id int, ctx context.Context) error
- func (s *Store[T]) Exists(id int) bool
- func (s *Store[T]) ExistsByName(name string) bool
- func (s *Store[T]) List() ([]T, error)
- func (s *Store[T]) Read(id int) (T, error)
- func (s *Store[T]) Update(id int, request T, ctx context.Context) (T, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store[T any] struct { // contains filtered or unexported fields }
func (*Store[T]) ExistsByName ¶
ExistsByName checks if an entry exists in the database
Click to show internal directories.
Click to hide internal directories.