common

package
v0.0.0-...-24031bd Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppError

type AppError struct {
	HttpCode int    `json:"code"`
	Message  string `json:"error"`
}

func (AppError) Error

func (e AppError) Error() string

type Handler

type Handler interface {
	Handle(w http.ResponseWriter, r *http.Request) (interface{}, error)
}

type RequestHandler

type RequestHandler struct {
	Handler Handler
}

func (RequestHandler) ServeHTTP

func (r RequestHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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