websupport

package
v0.62.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(addr string, handlers func(x *mux.Router), options Options) *http.Server

func ModelAndView

func ModelAndView(w http.ResponseWriter, resources fs.FS, view string, data Model) error

func Start

func Start(server *http.Server, l net.Listener)

func Stop

func Stop(server *http.Server)

func WithTransportLayerSecurity

func WithTransportLayerSecurity(certFile, keyFile string, app *http.Server)

Types

type Model

type Model struct {
	Map map[string]interface{}
}

type Options

type Options struct {
	HealthChecks []healthsupport.HealthCheck
}

type Path

type Path struct {
	URI     string
	Methods []string
}

func Paths

func Paths(router *mux.Router) []Path

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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