Documentation ¶
Index ¶
- Constants
- type Database
- func (d *Database) AdminDataDir() string
- func (d *Database) AllContent(namespace string) [][]byte
- func (d *Database) AllUploads() ([][]byte, error)
- func (d *Database) CheckSlugForDuplicate(namespace string, slug string) (string, error)
- func (d *Database) Close()
- func (d *Database) DeleteContent(namespace string, id string, slug string) error
- func (d *Database) DeleteUpload(id string) error
- func (d *Database) GetContent(namespace string, id string) ([]byte, error)
- func (d *Database) GetUpload(id string) ([]byte, error)
- func (d *Database) LoadConfig() ([]byte, error)
- func (d *Database) NewContent(ci any, data []byte) error
- func (d *Database) NewUpload(id, slug string, data []byte) error
- func (d *Database) NextContentId(ns string) (uint64, error)
- func (d *Database) NextUploadId() (uint64, error)
- func (d *Database) NextUserId(email string) (uint64, error)
- func (d *Database) Open(next http.HandlerFunc) http.HandlerFunc
- func (d *Database) PutConfig(data []byte) error
- func (d *Database) PutContent(ci any, data []byte) error
- func (d *Database) PutSortedContent(namespace string, m map[string][]byte) error
- func (d *Database) PutUser(email string, data []byte) error
- func (d *Database) Query(namespace string, opts db.QueryOptions) (int, [][]byte)
- func (d *Database) RegisterContentBuckets(contentTypeNames []string)
- func (d *Database) StartAdminDatabase(adminTypeNames []string) error
- func (d *Database) StartUserDatabase(email string) error
- func (d *Database) SystemInitComplete() bool
- func (d *Database) User(email string) ([]byte, error)
- func (d *Database) UserDataDir() string
- func (d *Database) UserDir() string
Constants ¶
View Source
const ItemBucketPrefix = "__"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) AdminDataDir ¶ added in v0.0.5
func (*Database) AllContent ¶
func (*Database) AllUploads ¶
func (*Database) CheckSlugForDuplicate ¶
func (*Database) DeleteContent ¶
func (*Database) DeleteUpload ¶
func (*Database) GetContent ¶
func (*Database) LoadConfig ¶
func (*Database) NextUploadId ¶
func (*Database) Open ¶
func (d *Database) Open(next http.HandlerFunc) http.HandlerFunc
func (*Database) PutSortedContent ¶
func (*Database) RegisterContentBuckets ¶
func (*Database) StartAdminDatabase ¶ added in v0.0.5
func (*Database) StartUserDatabase ¶
func (*Database) SystemInitComplete ¶
func (*Database) UserDataDir ¶
Click to show internal directories.
Click to hide internal directories.