Documentation
¶
Index ¶
- func DeleteSite(siteID string) error
- func GetFile(siteID, path string) (string, error)
- func GetSiteOwner(siteID string) (string, error)
- func GetSiteSlug(siteID string) (string, error)
- func GetSlug(slug string) (slugResponse, error)
- func NewFile(file *File) error
- func RemoveFile(siteID, path string) error
- func SetSlug(slug, id string) error
- type File
- type Site
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteSite ¶ added in v0.1.1
func GetSiteOwner ¶
func GetSiteSlug ¶
func RemoveFile ¶
Types ¶
type File ¶
type File struct {
Path string `json:"path,omitempty" gorm:"uniqueIndex:idx_path_site"`
CTime int64 `json:"ctime,omitempty"`
Hash string `json:"hash,omitempty"`
MTime int64 `json:"mtime,omitempty"`
Size int64 `json:"size,omitempty"`
Data string `json:"data,omitempty"`
Slug string `json:"site,omitempty" gorm:"uniqueIndex:idx_path_site"`
Deleted bool `json:"deleted"`
}
type Site ¶
type Site struct {
ID string `json:"id,omitempty"`
Host string `json:"host,omitempty"`
Created int64 `json:"created,omitempty"`
Owner string `json:"owner,omitempty"`
Slug string `json:"slug,omitempty"`
Options string `json:"options,omitempty"`
Size int64 `json:"size"`
}
func CreateSite ¶
Click to show internal directories.
Click to hide internal directories.