Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { DeletePaste(int) error GetDatabaseConnection() *sql.DB GetPaste(pasteID int) (*structs.Paste, error) GetPagedPastes(page int) ([]structs.Paste, error) GetPastesPages() int Initialize() RegisterDialect(dialectinterface.Interface) SavePaste(p *structs.Paste) (int64, error) Shutdown() }
Interface represents database interface which is available to all parts of application and registers with context.Context.
Source Files
¶
- databaseinterface.go
Click to show internal directories.
Click to hide internal directories.