Documentation ¶
Index ¶
- Constants
- func Create(addr string, handlers func(x *mux.Router), options Options) *http.Server
- func IsTlsEnabled() bool
- func ModelAndView(w http.ResponseWriter, resources fs.FS, view string, data Model) error
- func Start(server *http.Server, l net.Listener)
- func Stop(server *http.Server)
- func WithTransportLayerSecurity(certFile, keyFile string, app *http.Server)
- type Model
- type Options
- type Path
Constants ¶
View Source
const EnvTlsEnabled string = "HEXA_TLS_ENABLED"
Variables ¶
This section is empty.
Functions ¶
func IsTlsEnabled ¶
func IsTlsEnabled() bool
func ModelAndView ¶
Types ¶
type Options ¶
type Options struct {
HealthChecks []healthsupport.HealthCheck
}
Click to show internal directories.
Click to hide internal directories.