rootmux

package
v0.0.0-...-c511dfe Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHostPolicy

func CreateHostPolicy(hostname string, h *appDavHandler) func(ctx context.Context, host string) error

CreateHostPolicy implements autocert.HostPolicy

Types

type RootMux

type RootMux struct {
	Mux     http.Handler
	Policy  autocert.HostPolicy
	Manager *auth.Manager
}

RootMux represents the main controller of the application

func CreateRootMux

func CreateRootMux(port int, appsFile string, davsFile string, staticDir string) RootMux

CreateRootMux creates a RootMux

Jump to

Keyboard shortcuts

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