Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrResponse ¶
func ErrResponse(ctx context.Context, w http.ResponseWriter, statusCode int, message string, details ...slog.Attr)
ErrResponse reports the statusCode and message as a http response and also logs it together with the given details.
func Register ¶
func Register() error
Register generic API API handlers functions to the default http.DefaultServeMux
func SetupAndServe ¶
Setup and serve. Never returns. Handlers need to be registered before.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.