Documentation
¶
Index ¶
- func CmsMiddleware(cfg *config.ConfigCms, urls config.ConfigURL) bm.Handler
- func GenStaticSite(dir string, cfg *shared.ConfigSite) error
- func NewConfigSite() *shared.ConfigSite
- func NewSpinner() spinner.Model
- func StartApiServer()
- func StartSshServer()
- func WishMiddleware(handler *uploadassets.UploadAssetHandler) wish.Middleware
- type AssetHandler
- type Cmd
- type GotDBMsg
- type HttpReply
- type Page
- type PageData
- type RedirectRule
- type RssData
- type SSHServer
- type SubdomainProps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenStaticSite ¶
func GenStaticSite(dir string, cfg *shared.ConfigSite) error
func NewConfigSite ¶
func NewConfigSite() *shared.ConfigSite
func NewSpinner ¶
func StartApiServer ¶
func StartApiServer()
func StartSshServer ¶
func StartSshServer()
func WishMiddleware ¶
func WishMiddleware(handler *uploadassets.UploadAssetHandler) wish.Middleware
Types ¶
type AssetHandler ¶
type AssetHandler struct {
Username string
Subdomain string
Filepath string
ProjectDir string
Cfg *shared.ConfigSite
Dbpool db.DB
Storage storage.ObjectStorage
Logger *zap.SugaredLogger
Cache *gocache.Cache
UserID string
}
type PageData ¶
type PageData struct {
Site shared.SitePageData
}
type RedirectRule ¶
type SubdomainProps ¶
Click to show internal directories.
Click to hide internal directories.