Documentation ¶
Index ¶
- func Addimgwtags(db *bolt.DB, fn string, iw int, ih int, isz int, contr string, tags []string, ...) rscore.Settings
- func Addtextwtags(text string, tags []string, db *bolt.DB, uname string, mxindex int, buc []byte)
- func Addutoindex(db *bolt.DB, uname string, settings rscore.Settings) rscore.Settings
- func Countobj(db *bolt.DB, tn string, buc []byte) int
- func Getkeyfromsel(db *bolt.DB, tags []string, buc []byte, kmax int) []byte
- func Getrndimg(db *bolt.DB, kmax int, tags []string, buc []byte) rscore.Imgobj
- func Getrndtxt(db *bolt.DB, kmax int, tags []string, buc []byte) string
- func Imgobjctr(db *bolt.DB, t string) int
- func Isindb(db *bolt.DB, k []byte, buc []byte) bool
- func Mksel(db *bolt.DB, tags []string, buc []byte) []int
- func Mv(db *bolt.DB, sk []byte, dk []byte, cbuc []byte) error
- func Open(dbname string) *bolt.DB
- func Rdb(db *bolt.DB, k []byte, cbuc []byte) (v []byte, e error)
- func Rdeck(db *bolt.DB, deck rscore.Deck, id int, settings rscore.Settings) rscore.Deck
- func Rmfilists(db *bolt.DB, tags []rscore.Rtag, i int, buc []byte)
- func Rmkv(db *bolt.DB, k []byte, cbuc []byte) (e error)
- func Rmufrindex(db *bolt.DB, uname string, settings rscore.Settings) rscore.Settings
- func Rsettings(db *bolt.DB) rscore.Settings
- func Rtindex(db *bolt.DB) rscore.Tagresp
- func Ruindex(db *bolt.DB, settings rscore.Settings) rscore.Uindex
- func Ruser(db *bolt.DB, uname string) rscore.User
- func Tagstoindex(tags []string, settings rscore.Settings) (int, rscore.Settings)
- func Uilists(db *bolt.DB, tags []string, i int, buc []byte)
- func Updatertag(db *bolt.DB, t string) rscore.Rtag
- func Updatetindex(db *bolt.DB)
- func Wrdb(db *bolt.DB, k []byte, v []byte, cbuc []byte) (e error)
- func Wrdeck(db *bolt.DB, deck rscore.Deck)
- func Wrimage(db *bolt.DB, k []byte, img rscore.Imgobj)
- func Wrsettings(db *bolt.DB, settings rscore.Settings)
- func Wrtindex(db *bolt.DB, tindex rscore.Tagresp)
- func Wruindex(db *bolt.DB, users rscore.Uindex, settings rscore.Settings) rscore.Settings
- func Wruser(db *bolt.DB, u rscore.User)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Addimgwtags ¶
func Addimgwtags(db *bolt.DB, fn string, iw int, ih int, isz int, contr string, tags []string, w http.ResponseWriter, settings rscore.Settings) rscore.Settings
Stores image object in database TODO make work for batchimport
func Addtextwtags ¶
Conditionally adds tagged text to database
func Addutoindex ¶
Append uname to database index
func Getkeyfromsel ¶
Returns a random key based on tag list
func Rmufrindex ¶
Removes user name from index
func Tagstoindex ¶
Updates index to include new tags
func Wrsettings ¶
Wrapper for writing settings to database
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.