A pretty basic pastes cleanup procedure.

Fixes #16.
This commit is contained in:
2021-01-09 06:09:26 +05:00
parent 3ebff29113
commit 164a37d41f
10 changed files with 124 additions and 8 deletions

View File

@@ -36,6 +36,7 @@ import (
// Interface represents database interface which is available to all
// parts of application and registers with context.Context.
type Interface interface {
DeletePaste(int) error
GetDatabaseConnection() *sql.DB
GetPaste(pasteID int) (*structs.Paste, error)
GetPagedPastes(page int) ([]structs.Paste, error)