Documentation ¶
Index ¶
- type FavoriteStore
- func (s *FavoriteStore) Create(ctx context.Context, req *favorites.SaveRequest) error
- func (s *FavoriteStore) Delete(ctx context.Context, userId string, id string) error
- func (s *FavoriteStore) Get(ctx context.Context, id string) (*favorites.Favorite, error)
- func (s *FavoriteStore) List(ctx context.Context, userId string) ([]*favorites.Favorite, error)
- func (s *FavoriteStore) Liveness(ctx context.Context) error
- func (s *FavoriteStore) Update(ctx context.Context, req *favorites.SaveRequest, id string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FavoriteStore ¶
type FavoriteStore struct {
// contains filtered or unexported fields
}
FavoriteStore implements the favorite.Store interface using an SQL database.
func (*FavoriteStore) Create ¶
func (s *FavoriteStore) Create(ctx context.Context, req *favorites.SaveRequest) error
Create implements the favorites.Store interface.
func (*FavoriteStore) Update ¶
func (s *FavoriteStore) Update(ctx context.Context, req *favorites.SaveRequest, id string) error
Create implements the favorites.Store interface.
Click to show internal directories.
Click to hide internal directories.