Documentation ¶
Index ¶
- func AddContent(websiteName string, path string, contentType string, content []byte) error
- func AddWebsite(websiteName string) (*models.Website, error)
- func GetContent(websiteName string, path string) (string, []byte, error)
- func MapContent(websiteName string, eagerLoadContents bool) (*clientpb.Website, error)
- func Names() ([]string, error)
- func RemoveContent(websiteName string, path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddContent ¶
AddContent - Add website content for a path
func AddWebsite ¶ added in v1.2.0
AddWebsite - Add website with no content
func GetContent ¶
GetContent - Get static content for a given path
func MapContent ¶
MapContent - List the content of a specific site, returns map of path->json(content-type/size)
func RemoveContent ¶
RemoveContent - Remove website content for a path
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.