Documentation ¶
Index ¶
- func GetDataFromDB[T Data](db *DB, typ, kind string, fields map[string]string) ([]T, error)
- type API
- func (a *API) AddFolder(c *gin.Context)
- func (a *API) AddSub(c *gin.Context)
- func (a *API) AssetsStatic(c *gin.Context)
- func (a *API) Delete(c *gin.Context)
- func (a *API) DeleteFolder(c *gin.Context)
- func (a *API) DeleteSub(c *gin.Context)
- func (a *API) Docs(c *gin.Context)
- func (a *API) Folders(c *gin.Context)
- func (a *API) HandleNewItems()
- func (a *API) Index(c *gin.Context)
- func (a *API) Login(c *gin.Context)
- func (a *API) Logout(c *gin.Context)
- func (a *API) Me(c *gin.Context)
- func (a *API) Multitoc(c *gin.Context)
- func (a *API) Session(c *gin.Context)
- func (a *API) Subs(c *gin.Context)
- func (a *API) UpdateSub(c *gin.Context)
- func (a *API) UploadOpml(c *gin.Context)
- func (a *API) WS(c *gin.Context)
- func (a *API) WSEmitter()
- type DB
- func (db *DB) AddData(sub Data) (Data, error)
- func (db *DB) Close()
- func (db *DB) DeleteData(dataID string) error
- func (db *DB) DeleteDocs(delList *common.DeleteList) error
- func (db *DB) GetDocs(skey, startID, sid string) ([]*common.Doc, *common.More, error)
- func (db *DB) GetFolderStats() (map[string]int, error)
- func (db *DB) GetMultitoc() (*common.Toc, error)
- func (db *DB) MoveSubItemsToFolder(sub *common.Sub, folder *common.Folder) error
- func (db *DB) SaveDoc(doc *common.Doc) error
- func (db *DB) Setup() error
- func (db *DB) UpdateData(sub Data) error
- type Data
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) AssetsStatic ¶
func (*API) DeleteFolder ¶ added in v0.3.0
func (*API) HandleNewItems ¶
func (a *API) HandleNewItems()
func (*API) UploadOpml ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) DeleteData ¶
func (*DB) DeleteDocs ¶
func (db *DB) DeleteDocs(delList *common.DeleteList) error
func (*DB) MoveSubItemsToFolder ¶ added in v0.3.0
MoveSubItemsToFolder moves docs of a sub to new folder, if any given.
func (*DB) UpdateData ¶
Click to show internal directories.
Click to hide internal directories.