Documentation ¶
Index ¶
- func Decode(r *http.Request, dest any) error
- func GetStatusCode(ctx context.Context) string
- func GetTraceID(ctx context.Context) string
- func IsShutdownError(err error) bool
- func NewShutdownError(message string) error
- func Response(ctx context.Context, w http.ResponseWriter, statusCode int, data any) error
- func SetStatusCode(ctx context.Context, statusCode int) error
- type App
- type CtxValues
- type Handler
- type Middleware
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStatusCode ¶
func GetTraceID ¶
func IsShutdownError ¶
func NewShutdownError ¶
Types ¶
type Handler ¶
Handler represents type responsible for handling http request. It extends signature of http.HandlerFunc with support for context.Context.
type Middleware ¶
Click to show internal directories.
Click to hide internal directories.