httpserver

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalAndWriteJSONResponse

func MarshalAndWriteJSONResponse(ctx context.Context, w http.ResponseWriter, r *http.Request, code int, v interface{})

func SetupDatadogInstrumentation

func SetupDatadogInstrumentation(service, awsRegion, awsAccountID, stage string) *datadog.Exporter

func StartHealthServer

func StartHealthServer(port string)

func StatusNotFoundHandler added in v1.8.2

func StatusNotFoundHandler() http.Handler

func UnmarshalRequest

func UnmarshalRequest(body io.ReadCloser, v interface{}) (err error)

func WriteJSONResponse

func WriteJSONResponse(ctx context.Context, w http.ResponseWriter, r *http.Request, code int, body []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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