norn

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeleteEndpoint

func NewDeleteEndpoint(r *registry.Registry) endpoint.Endpoint

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

func NewGetAllEndpoint(r *registry.Registry) endpoint.Endpoint

NewGetAllEndpoint returns the endpoint for /norns handler

func NewGetAllEndpointDecode

func NewGetAllEndpointDecode() kithttp.DecodeRequestFunc

NewGetAllEndpointDecode returns DecodeRequestFunc wrapper for the /norns endpoint

func NewPostEndpoint

func NewPostEndpoint(r *registry.Registry) endpoint.Endpoint

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

type IdOwnerItem

type IdOwnerItem struct {
	ID    string
	Owner string
	Item  argus.Item
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL