Documentation
¶
Index ¶
Constants ¶
View Source
const SpecFile string = `` /* 147-byte string literal not displayed */
Variables ¶
Functions ¶
func SpecFileHandler ¶
Types ¶
type API ¶
type Client ¶ added in v0.0.2
type Client struct {
BaseURL string
HTTPClient HTTPClient
}
func NewClient ¶ added in v0.0.2
func NewClient(baseURL string, httpClient HTTPClient) *Client
func (*Client) GetPets ¶ added in v0.0.2
func (c *Client) GetPets(ctx context.Context, request GetPetsRequest) (GetPetsResponse, error)
GetPets - GET /pets
type ErrParseParam ¶
func (ErrParseParam) Error ¶
func (e ErrParseParam) Error() string
func (ErrParseParam) Unwrap ¶
func (e ErrParseParam) Unwrap() error
type GetPetsHandlerFunc ¶
type GetPetsHandlerFunc func(r GetPetsRequestParser) GetPetsResponse
func (GetPetsHandlerFunc) ServeHTTP ¶
func (f GetPetsHandlerFunc) ServeHTTP(w http.ResponseWriter, r *http.Request)
type GetPetsRequest ¶
func (GetPetsRequest) Parse ¶ added in v0.0.2
func (r GetPetsRequest) Parse() GetPetsRequest
type GetPetsRequestParser ¶ added in v0.0.2
type GetPetsRequestParser interface {
Parse() GetPetsRequest
}
func GetPetsHTTPRequest ¶ added in v0.0.2
func GetPetsHTTPRequest(r *http.Request) GetPetsRequestParser
type GetPetsResponse ¶ added in v0.0.2
type GetPetsResponse interface {
Write(w http.ResponseWriter)
// contains filtered or unexported methods
}
func NewGetPetsResponse200 ¶ added in v0.0.2
func NewGetPetsResponse200(xNext string) GetPetsResponse
type GetPetsResponse200 ¶
type GetPetsResponse200 struct {
Headers struct {
XNext string
}
}
func (GetPetsResponse200) Write ¶ added in v0.0.2
func (r GetPetsResponse200) Write(w http.ResponseWriter)
Click to show internal directories.
Click to hide internal directories.