Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleEndpoint ¶
func HandleEndpoint[T any](h EndpointHandler[T]) http.HandlerFunc
func HandleEndpointFunc ¶
func HandleEndpointFunc[T any](h EndpointHandlerFunc[T]) http.HandlerFunc
Types ¶
type EndpointError ¶
func NewEndpointError ¶
func NewEndpointError(code int, message string) *EndpointError
func WrapEndpointError ¶
func WrapEndpointError(err error) *EndpointError
func (EndpointError) Error ¶
func (e EndpointError) Error() string
func (*EndpointError) WriteTo ¶
func (e *EndpointError) WriteTo(w http.ResponseWriter)
Click to show internal directories.
Click to hide internal directories.