Documentation ¶
Index ¶
- 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
- type Handler
- type Middleware
- type Values
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTraceID ¶
func IsShutdown ¶
func NewShutdownError ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) SignalShutdown ¶
func (a *App) SignalShutdown()
type Middleware ¶
Click to show internal directories.
Click to hide internal directories.