Documentation ¶
Index ¶
- func GetTraceID(ctx context.Context) string
- func IsShutdown(e error) bool
- func NewShutdownError(message string) error
- func Respond(ctx context.Context, w http.ResponseWriter, data any, 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 ¶
NewShutdownError causes to signal a graceful shutdown
Types ¶
type App ¶
type App struct { *httptreemux.ContextMux // contains filtered or unexported fields }
func (*App) Handle ¶
func (a *App) Handle(method, group, path string, handler Handler, mw ...Middleware)
func (*App) SignalShutdown ¶
func (a *App) SignalShutdown()
type Middleware ¶
Click to show internal directories.
Click to hide internal directories.