caddy

package
v5.0.0-...-b98a0e9 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromTemplate

func FromTemplate(ctx context.Context, tplData TplData) ([]byte, error)

func ResolveSites

func ResolveSites(ctx context.Context, resolver routing.UpstreamsResolver, external bool) ([]byte, []string, error)

ResolveSites generates a Caddyfile using routing.ResolveProxy with custom resolvers

Types

type ActiveSite

type ActiveSite struct {
	*routing.ActiveProxy
	// Final resolve with mux or reverse proxy
	MuxMode bool
	// LogFile for this site
	Log string
	// LogLevel for this site
	LogLevel string
}

type RawServer

type RawServer struct {
	routing.RouteRegistrar
	// contains filtered or unexported fields
}

RawServer partially implements server.RawServer interface to be used by various caddy implementations

func New

func New(ctx context.Context, id, name string, meta map[string]string) *RawServer

func (*RawServer) Clone

func (s *RawServer) Clone() interface{}

func (*RawServer) Endpoints

func (s *RawServer) Endpoints() []string

func (*RawServer) ID

func (s *RawServer) ID() string

func (*RawServer) Metadata

func (s *RawServer) Metadata() map[string]string

func (*RawServer) Name

func (s *RawServer) Name() string

func (*RawServer) RootContext

func (s *RawServer) RootContext() context.Context

func (*RawServer) SetMetadata

func (s *RawServer) SetMetadata(meta map[string]string)

func (*RawServer) Type

func (s *RawServer) Type() server.Type

type TplData

type TplData struct {
	Sites             []*ActiveSite
	WebRoot           string
	Storage           string
	MuxMode           bool
	EnableMetrics     bool
	DisableAdmin      bool
	RedirectLogWriter bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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