Documentation
¶
Index ¶
- func NewDeleteEndpoint(r *registry.Registry) endpoint.Endpoint
- func NewDeleteEndpointDecode() kithttp.DecodeRequestFunc
- func NewGetAllEndpoint(r *registry.Registry) endpoint.Endpoint
- func NewGetAllEndpointDecode() kithttp.DecodeRequestFunc
- func NewPostEndpoint(r *registry.Registry) endpoint.Endpoint
- func NewPostEndpointDecode() kithttp.DecodeRequestFunc
- func NewPutEndpointDecoder() kithttp.DecodeRequestFunc
- func NewSetEndpointEncode() kithttp.EncodeResponseFunc
- type BadRequestError
- type IdOwnerItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDeleteEndpoint ¶
NewDeleteEndpoint returns the endpoint for /norns/{id} handler
func NewDeleteEndpointDecode ¶
func NewDeleteEndpointDecode() kithttp.DecodeRequestFunc
NewDeleteEndpointDecode returns DecodeRequestFunc wrapper for the /norns/{id} endpoint
func NewGetAllEndpoint ¶
NewGetAllEndpoint returns the endpoint for /norns handler
func NewGetAllEndpointDecode ¶
func NewGetAllEndpointDecode() kithttp.DecodeRequestFunc
NewGetAllEndpointDecode returns DecodeRequestFunc wrapper for the /norns endpoint
func NewPostEndpoint ¶
NewPostEndpoint returns the endpoint for /events handler
func NewPostEndpointDecode ¶
func NewPostEndpointDecode() kithttp.DecodeRequestFunc
NewEventsEndpointDecode returns DecodeRequestFunc wrapper for the /events endpoint
func NewPutEndpointDecoder ¶
func NewPutEndpointDecoder() kithttp.DecodeRequestFunc
NewPutEndpointDecoder returns DecodeRequestFunc wrapper for the /norns/{id} endpoint
func NewSetEndpointEncode ¶
func NewSetEndpointEncode() kithttp.EncodeResponseFunc
NewSetEndpointEncode returns EncodeResponseFunc wrapper for the /norns endpoint
Types ¶
type BadRequestError ¶
type BadRequestError struct {
Request interface{}
}
func (BadRequestError) Error ¶
func (bre BadRequestError) Error() string
func (BadRequestError) StatusCode ¶
func (bre BadRequestError) StatusCode() int
Click to show internal directories.
Click to hide internal directories.