Documentation ¶
Index ¶
- Constants
- func DefaultConfigDir() string
- type Config
- func (c *Config) FixEngineConfigFile(deleteMode ...bool) (bool, error)
- func (c *Config) GetVhostConfigDirAbs() (string, error)
- func (c *Config) GetVhostConfigLocalDirAbs() (string, error)
- func (c *Config) Init() *Config
- func (c *Config) InstallModule(ctx context.Context, module string) error
- func (c *Config) Reload(ctx context.Context) error
- func (c *Config) Start(ctx context.Context) error
- func (c *Config) Stop(ctx context.Context) error
- func (c *Config) TestConfig(ctx context.Context) error
Constants ¶
View Source
const Name = `caddy2`
Variables ¶
This section is empty.
Functions ¶
func DefaultConfigDir ¶ added in v1.4.7
func DefaultConfigDir() string
Types ¶
type Config ¶
type Config struct { *engine.CommonConfig // contains filtered or unexported fields }
func (*Config) FixEngineConfigFile ¶ added in v1.4.7
func (*Config) GetVhostConfigDirAbs ¶ added in v1.4.7
func (*Config) GetVhostConfigLocalDirAbs ¶ added in v1.4.7
func (*Config) InstallModule ¶ added in v1.4.7
Caddy 2.4.4 and up supports adding a module directly: $ caddy add-package github.com/caddyserver/transform-encoder
Click to show internal directories.
Click to hide internal directories.