app

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppStruct = &App{}
View Source
var ConfigAutosavePath = filepath.Join(caddy.AppConfigDir(), "autosave.Caddyfile")

Functions

This section is empty.

Types

type AdaptResult

type AdaptResult struct {
	Body       string `json:"-"`
	Warnings   []caddyconfig.Warning
	AdaptError string `json:",omitempty"`
}

type App

type App struct {
	Log      *zap.Logger
	ConfPath string
}

func (*App) AdaptCaddyfile

func (a *App) AdaptCaddyfile(c echo.Context, caddyfile_content string) (AdaptResult, error)

func (*App) InstallCaddyfile

func (a *App) InstallCaddyfile(c echo.Context, caddyfile_content string) (bool, error)

func (*App) LastCaddyfile

func (a *App) LastCaddyfile(c echo.Context) (string, error)

Jump to

Keyboard shortcuts

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