Documentation ¶
Index ¶
- type Clipboard
- type DB
- func (db *DB) AllClipboards(userUUID string) ([]*Clipboard, error)
- func (db *DB) CreateClipboard(userUUID string, data string) (*Clipboard, error)
- func (db *DB) CreateClipboardFile(userUUID string, file io.Reader) (*Clipboard, error)
- func (db *DB) DeleteClipboard(userUUID string, cbID int) error
- func (db *DB) GetClipboardFile(userUUID string, cbID int) (io.Reader, error)
- func (db *DB) TrimEntries(userUUID string, tx *sql.Tx) error
- type Datastore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
DB holds the database connection
func (*DB) AllClipboards ¶
AllClipboards returns all clipboards for a given user
func (*DB) CreateClipboard ¶
CreateClipboard does the following: * Create the new entry for the user * Trim the extra entries if user has more than 10 clipboards * Returns the new entry
func (*DB) CreateClipboardFile ¶
CreateClipboardFile does the following: * Create the new entry for the user with the file * Trim the extra entries if user has more than 10 clipboards * Returns the new entry
func (*DB) DeleteClipboard ¶
DeleteClipboard deletes the specified clipboard for the specified user
func (*DB) GetClipboardFile ¶
GetClipboardFile returns the file data associated with the specified clipboard and user
Click to show internal directories.
Click to hide internal directories.