Back to godoc.org

Package caddy

v1.6.1
Latest Go to latest

The highest tagged major version is .

Published: Jul 9, 2019 | License: AGPL-3.0 | Module: github.com/EngineerIG/cells

Index

Variables

var (
	FuncMap = template.FuncMap{
		"urls":           internalURLFromServices,
		"serviceAddress": addressFromService,
	}
)

func Enable

func Enable(caddyfile string, player TemplateFunc)

Enable the caddy builder

func GetConfigPaths

func GetConfigPaths() [][]string

func GetInstance

func GetInstance() *caddy.Instance

func GetPathes

func GetPathes() []string

func RegisterPluginTemplate

func RegisterPluginTemplate(fn TemplateFunc, watchConfigPath []string, pathes ...string) error

RegisterPluginTemplate adds a TemplateFunc to be called for each plugin

func Restart

func Restart() error

func Start

func Start() error

func StartWithFastRestart

func StartWithFastRestart() error

func Stop

func Stop() error

type Caddy

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

Caddy contains the templates and functions for building a dynamic caddyfile

func Get

func Get() *Caddy

Get returns the currently enabled caddy builder

func (*Caddy) GetTemplate

func (c *Caddy) GetTemplate() *template.Template

func (*Caddy) Play

func (c *Caddy) Play() (*bytes.Buffer, error)

type TemplateFunc

type TemplateFunc func() (*bytes.Buffer, error)

TemplateFunc is a function providing a stringer

func GetTemplates

func GetTemplates() []TemplateFunc

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier