Documentation ¶
Index ¶
Constants ¶
View Source
const SpecFile string = `paths:
/pets:
get:
responses:
'200': {}
`
Variables ¶
Functions ¶
func SpecFileHandler ¶
Types ¶
type API ¶
type ErrParseParam ¶
func (ErrParseParam) Error ¶
func (e ErrParseParam) Error() string
func (ErrParseParam) Unwrap ¶
func (e ErrParseParam) Unwrap() error
type GetPetsHandlerFunc ¶
type GetPetsHandlerFunc func(r GetPetsRequester) GetPetsResponder
func (GetPetsHandlerFunc) ServeHTTP ¶
func (f GetPetsHandlerFunc) ServeHTTP(w http.ResponseWriter, r *http.Request)
type GetPetsRequest ¶
type GetPetsRequester ¶
type GetPetsRequester interface {
Parse() GetPetsRequest
}
type GetPetsResponder ¶
type GetPetsResponder interface {
// contains filtered or unexported methods
}
func GetPetsResponse200 ¶
func GetPetsResponse200() GetPetsResponder
Click to show internal directories.
Click to hide internal directories.