Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Paste ¶
Paste contains object read from and send into database.
type PasteDB ¶
PasteDB is wrapper for sql database object with additional functions for pastes.
func (*PasteDB) DeletePaste ¶
DeletePaste removes paste with specified ID and returns true if deleted, false if not found.
func (*PasteDB) LoopCheckFileSizes ¶
func (db *PasteDB) LoopCheckFileSizes()
LoopCheckFileSizes loops over isDBFileTooLarge
func (*PasteDB) ReadAllPastes ¶
ReadAllPastes returns all pastes but without any content, just the metadata.
func (*PasteDB) ReadPaste ¶
ReadPaste gets paste with selected ID, otherwise returns empty Paste struct.
Click to show internal directories.
Click to hide internal directories.