web_support

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: Apache-2.0 Imports: 9 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, view string, data Model) error

func Start

func Start(server *http.Server)

func Stop

func Stop(server *http.Server)

func WaitForHealthy

func WaitForHealthy(server *http.Server)

Types

type Health

type Health struct {
	Status string `json:"status"`
}

type Model

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

type Options

type Options struct {
	ResourceDirectory string
}

Jump to

Keyboard shortcuts

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