handler

package
v0.0.0-...-dba7eb2 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RespondJSON

func RespondJSON(ctx context.Context, w http.ResponseWriter, body any, status int)

Types

type ErrResponse

type ErrResponse struct {
	Message string   `json:"message"`
	Details []string `json:"details,omitempty"`
}

type Frontend

type Frontend struct {
	// contains filtered or unexported fields
}

func NewFrontend

func NewFrontend(assets embed.FS, prefix string) *Frontend

func (*Frontend) ServeHTTP

func (f *Frontend) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Hello

type Hello struct{}

func NewHello

func NewHello() *Hello

func (*Hello) Get

func (h *Hello) Get(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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