Versions in this module Expand all Collapse all v0 v0.1.0 Jun 16, 2022 Changes in this version + func Decode(r *http.Request, val interface{}) error + func GetTraceID(ctx context.Context) string + func IsShutdown(err error) bool + func NewShutdownError(message string) error + func Param(r *http.Request, key string) string + func Respond(ctx context.Context, w http.ResponseWriter, data interface{}, statusCode int) error + func SetStatusCode(ctx context.Context, statusCode int) error + type App struct + func NewApp(shutdown chan os.Signal, mw ...Middleware) *App + func (a *App) Handle(method string, group string, path string, handler Handler, mw ...Middleware) + func (a *App) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (a *App) SignalShutdown() + type Handler func(ctx context.Context, w http.ResponseWriter, r *http.Request) error + type Middleware func(Handler) Handler + type Values struct + Now time.Time + StatusCode int + TraceID string + func GetValues(ctx context.Context) (*Values, error)