Documentation
¶
Index ¶
- Variables
- type AdaptResult
- type App
- func (a *App) AdaptCaddyfile(c echo.Context, caddyfile_content string) (AdaptResult, error)
- func (a *App) InstallCaddyfile(c echo.Context, caddyfile_content string) (bool, error)
- func (a *App) LastCaddyfile(c echo.Context) (string, error)
- func (a *App) Liveness(c echo.Context) ([]LivenessStatus, error)
- type LivenessStatus
- type UpstreamStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var AppStruct = &App{}
View Source
var ConfigAutosavePath = filepath.Join(caddy.AppConfigDir(), "autosave.Caddyfile")
View Source
var Instance = framework.CreateApp(AppStruct)
Functions ¶
This section is empty.
Types ¶
type AdaptResult ¶
type AdaptResult struct {
Body string `json:"-"`
Warnings []caddyconfig.Warning
AdaptError string `json:",omitempty"`
}
type LivenessStatus ¶
type LivenessStatus struct {
Host string `json:"host"`
Upstreams []UpstreamStatus `json:"upstreams"`
}
type UpstreamStatus ¶
Click to show internal directories.
Click to hide internal directories.