http

package
v0.0.0-...-89416fd Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustWriteJSON

func MustWriteJSON(w stdhttp.ResponseWriter, r *stdhttp.Request, status int, resp interface{})

func Start

func Start(srv *http.Server, routes Handler)

func Stop

func Stop(ctx context.Context, srvs ...*http.Server)

Types

type Handler

type Handler map[string]http.HandlerFunc

Jump to

Keyboard shortcuts

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