Documentation ¶
Index ¶
- type CommentRow
- type Database
- func (d *Database) CreateComment(ctx context.Context, cmt comment.Comment) (comment.Comment, error)
- func (d *Database) DeleteComment(ctx context.Context, id string) error
- func (d *Database) GetComment(ctx context.Context, uuid string) (comment.Comment, error)
- func (d *Database) GetComments(ctx context.Context) ([]comment.Comment, error)
- func (d *Database) MigrateDB() error
- func (d *Database) Ping(ctx context.Context) error
- func (d *Database) UpdateComment(ctx context.Context, id string, cmt comment.Comment) (comment.Comment, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentRow ¶
type CommentRow struct { ID string Slug sql.NullString Body sql.NullString Author sql.NullString }
type Database ¶
func NewDatabase ¶
func (*Database) CreateComment ¶
func (*Database) DeleteComment ¶
func (*Database) GetComment ¶
func (*Database) GetComments ¶
Click to show internal directories.
Click to hide internal directories.