Documentation ¶
Index ¶
- type DBStore
- func (s *DBStore) AddComment(ctx context.Context, gameID string, authorID int, eventNumber int, ...) (string, error)
- func (s *DBStore) DeleteComment(ctx context.Context, commentID string, authorID int) error
- func (s *DBStore) Disconnect()
- func (s *DBStore) GetComments(ctx context.Context, gameID string) ([]models.GetCommentsForGameRow, error)
- func (s *DBStore) GetCommentsForAllGames(ctx context.Context, limit, offset int) ([]models.GetCommentsForAllGamesRow, error)
- func (s *DBStore) UpdateComment(ctx context.Context, authorID int, commentID, comment string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBStore ¶
type DBStore struct {
// contains filtered or unexported fields
}
func (*DBStore) AddComment ¶
func (*DBStore) DeleteComment ¶
func (*DBStore) Disconnect ¶
func (s *DBStore) Disconnect()
func (*DBStore) GetComments ¶
func (*DBStore) GetCommentsForAllGames ¶
Click to show internal directories.
Click to hide internal directories.