pgs

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 51 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CmsMiddleware

func CmsMiddleware(cfg *config.ConfigCms, urls config.ConfigURL) bm.Handler

func GenStaticSite

func GenStaticSite(dir string, cfg *shared.ConfigSite) error

func NewConfigSite

func NewConfigSite() *shared.ConfigSite

func NewSpinner

func NewSpinner() spinner.Model

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 Cmd

type Cmd struct {
	// contains filtered or unexported fields
}

type GotDBMsg

type GotDBMsg db.DB

type HttpReply

type HttpReply struct {
	Filepath string
	Query    map[string]string
	Status   int
}

type Page

type Page struct {
	// contains filtered or unexported fields
}

type PageData

type PageData struct {
	Site shared.SitePageData
}

type RedirectRule

type RedirectRule struct {
	From       string
	To         string
	Status     int
	Query      map[string]string
	Conditions map[string]string
	Force      bool
	Signed     bool
}

type RssData

type RssData struct {
	Contents template.HTML
}

type SSHServer

type SSHServer struct{}

type SubdomainProps

type SubdomainProps struct {
	ProjectName string
	Username    string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL