websupport

package
v0.6.13 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: Apache-2.0 Imports: 14 Imported by: 4

Documentation

Index

Constants

View Source
const EnvTlsEnabled string = "HEXA_TLS_ENABLED"

Variables

This section is empty.

Functions

func Create

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

func IsTlsEnabled

func IsTlsEnabled() bool

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