Documentation ¶
Index ¶
- Constants
- Variables
- func SchemaPath(r *http.Request) (string, bool)
- func SpecFileHandler() http.Handler
- type API
- type Client
- type ErrParseParam
- type GetShopsShopHandlerFunc
- type GetShopsShopParams
- type GetShopsShopRequest
- type GetShopsShopResponse
- type GetShopsShopResponse200
- type GetShopsShopResponseDefault
- type HTTPClient
- type HTTPClientFunc
Constants ¶
View Source
const SpecFile string = `` /* 416-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) GetShopsShop ¶ added in v0.0.2
func (c *Client) GetShopsShop(ctx context.Context, request GetShopsShopParams) (GetShopsShopResponse, error)
GetShopsShop - GET /shops/{shop}
type ErrParseParam ¶
func (ErrParseParam) Error ¶
func (e ErrParseParam) Error() string
func (ErrParseParam) Unwrap ¶
func (e ErrParseParam) Unwrap() error
type GetShopsShopHandlerFunc ¶
type GetShopsShopHandlerFunc func(ctx context.Context, r GetShopsShopRequest) GetShopsShopResponse
func (GetShopsShopHandlerFunc) ServeHTTP ¶
func (f GetShopsShopHandlerFunc) ServeHTTP(w http.ResponseWriter, r *http.Request)
type GetShopsShopParams ¶ added in v0.0.3
type GetShopsShopParams struct { Query struct { Page *int32 } Path struct { Shop string } Headers struct { RequestID *string } }
func (GetShopsShopParams) HTTP ¶ added in v0.0.3
func (r GetShopsShopParams) HTTP() *http.Request
func (GetShopsShopParams) Parse ¶ added in v0.0.3
func (r GetShopsShopParams) Parse() (GetShopsShopParams, error)
type GetShopsShopRequest ¶
type GetShopsShopRequest interface { HTTP() *http.Request Parse() (GetShopsShopParams, error) }
func GetShopsShopHTTPRequest ¶ added in v0.0.2
func GetShopsShopHTTPRequest(r *http.Request) GetShopsShopRequest
type GetShopsShopResponse ¶ added in v0.0.2
type GetShopsShopResponse interface { Write(w http.ResponseWriter) // contains filtered or unexported methods }
func NewGetShopsShopResponse200 ¶ added in v0.0.2
func NewGetShopsShopResponse200() GetShopsShopResponse
func NewGetShopsShopResponseDefault ¶ added in v0.0.2
func NewGetShopsShopResponseDefault(code int) GetShopsShopResponse
type GetShopsShopResponse200 ¶
type GetShopsShopResponse200 struct{}
func (GetShopsShopResponse200) Write ¶ added in v0.0.2
func (r GetShopsShopResponse200) Write(w http.ResponseWriter)
type GetShopsShopResponseDefault ¶
type GetShopsShopResponseDefault struct {
Code int
}
func (GetShopsShopResponseDefault) Write ¶ added in v0.0.2
func (r GetShopsShopResponseDefault) Write(w http.ResponseWriter)
type HTTPClient ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.