handler

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler added in v0.4.0

func Handler(handler HandlerFunc) func(http.ResponseWriter, *http.Request)

func RespondJSON

func RespondJSON(ctx context.Context, w http.ResponseWriter, value interface{}) errors.Error

func UnmarshalRequestBody

func UnmarshalRequestBody(ctx context.Context, r *http.Request, value interface{}) errors.Error

Types

type HandlerFunc added in v0.4.0

type HandlerFunc func(ctx context.Context, r *http.Request) (interface{}, errors.Error)

Jump to

Keyboard shortcuts

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