caddyController

package
v0.0.0-...-24c89fc Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func NewController

func NewController(lc fx.Lifecycle, logger *slog.Logger, conf *config.Config) *Controller

func (*Controller) Reconfigure

func (csc *Controller) Reconfigure(routes RouteSpec) error

type RouteDestination

type RouteDestination struct {
	ID          int    `db:"id"`
	Domain      string `db:"domain"`
	Path        string `db:"path"`
	ContentPath string `db:"content_path"`
}

type RouteSpec

type RouteSpec map[string][]*RouteDestination

RouteSpec maps domains to a set of routes within them and describes how to map them all together

Jump to

Keyboard shortcuts

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