rest

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() http.Handler

Types

type CreateIdeaInput

type CreateIdeaInput struct {
	Name string `json:"name"`
}

func (*CreateIdeaInput) Validate

func (in *CreateIdeaInput) Validate() error

type CreateIdeaOutput

type CreateIdeaOutput struct{}

func (*CreateIdeaOutput) Empty

func (_ *CreateIdeaOutput) Empty() bool

func (*CreateIdeaOutput) Head

func (_ *CreateIdeaOutput) Head(h http.Header)

func (*CreateIdeaOutput) Status

func (_ *CreateIdeaOutput) Status() int

type ErrorOutput

type ErrorOutput struct {
	Message string `json:"message"`
	// contains filtered or unexported fields
}

func (ErrorOutput) Error

func (o ErrorOutput) Error() string

func (ErrorOutput) Status

func (o ErrorOutput) Status() int

type ListIdeasInput

type ListIdeasInput struct{ NameFilter string }

func (*ListIdeasInput) Read

func (in *ListIdeasInput) Read(r *http.Request)

type ListIdeasOutput

type ListIdeasOutput []map[string]string

func (ListIdeasOutput) Empty

func (out ListIdeasOutput) Empty() bool

func (ListIdeasOutput) Status

func (out ListIdeasOutput) Status() int

type MethodNotAllowedOutput

type MethodNotAllowedOutput struct {
	Message string `json:"message"`
}

func (MethodNotAllowedOutput) Status

func (_ MethodNotAllowedOutput) Status() int

type NotFoundOutput

type NotFoundOutput struct {
	Message string `json:"message"`
}

func (NotFoundOutput) Status

func (_ NotFoundOutput) Status() int

Jump to

Keyboard shortcuts

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