Documentation ¶
Index ¶
- Constants
- Variables
- func SchemaPath(r *http.Request) (string, bool)
- func SpecFileHandler() http.Handler
- type API
- type Client
- func (c *Client) GetShopsShop(ctx context.Context, request GetShopsShopParams) (GetShopsShopResponse, error)
- func (c *Client) GetShopsShopReviews(ctx context.Context, request GetShopsShopReviewsParams) (GetShopsShopReviewsResponse, error)
- func (c *Client) PostShopsNew(ctx context.Context, request PostShopsNewParams) (PostShopsNewResponse, error)
- type ErrParseParam
- type GetShopsShopHandlerFunc
- type GetShopsShopParams
- type GetShopsShopParamsPath
- type GetShopsShopParamsQuery
- type GetShopsShopRequest
- type GetShopsShopResponse
- type GetShopsShopResponse200
- type GetShopsShopResponseDefault
- type GetShopsShopReviewsHandlerFunc
- type GetShopsShopReviewsParams
- type GetShopsShopReviewsParamsPath
- type GetShopsShopReviewsParamsQuery
- type GetShopsShopReviewsRequest
- type GetShopsShopReviewsResponse
- type GetShopsShopReviewsResponse200
- type GetShopsShopReviewsResponseDefault
- type HTTPClient
- type HTTPClientFunc
- type Maybe
- type Nullable
- type PostShopsNewHandlerFunc
- type PostShopsNewParams
- type PostShopsNewParamsQuery
- type PostShopsNewRequest
- type PostShopsNewResponse
- type PostShopsNewResponse200
- type PostShopsNewResponseDefault
Constants ¶
View Source
const SpecFile string = `` /* 828-byte string literal not displayed */
Variables ¶
Functions ¶
func SpecFileHandler ¶
Types ¶
type API ¶
type API struct { PostShopsNewHandler PostShopsNewHandlerFunc GetShopsShopHandler GetShopsShopHandlerFunc GetShopsShopReviewsHandler GetShopsShopReviewsHandlerFunc // not found NotFoundHandler http.Handler // spec file SpecFileHandler http.Handler Middlewares []func(h http.Handler) http.Handler }
func (API) TestClient ¶ added in v0.1.28
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}
func (*Client) GetShopsShopReviews ¶ added in v0.0.2
func (c *Client) GetShopsShopReviews(ctx context.Context, request GetShopsShopReviewsParams) (GetShopsShopReviewsResponse, error)
GetShopsShopReviews GET /shops/{shop}/reviews
func (*Client) PostShopsNew ¶ added in v0.0.2
func (c *Client) PostShopsNew(ctx context.Context, request PostShopsNewParams) (PostShopsNewResponse, error)
PostShopsNew POST /shops/new
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 GetShopsShopParamsQuery Path GetShopsShopParamsPath }
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 GetShopsShopParamsPath ¶ added in v0.1.18
type GetShopsShopParamsPath struct {
Shop string
}
type GetShopsShopParamsQuery ¶ added in v0.1.18
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 {
// 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 GetShopsShopReviewsHandlerFunc ¶
type GetShopsShopReviewsHandlerFunc func(ctx context.Context, r GetShopsShopReviewsRequest) GetShopsShopReviewsResponse
func (GetShopsShopReviewsHandlerFunc) ServeHTTP ¶
func (f GetShopsShopReviewsHandlerFunc) ServeHTTP(w http.ResponseWriter, r *http.Request)
type GetShopsShopReviewsParams ¶ added in v0.0.3
type GetShopsShopReviewsParams struct { Query GetShopsShopReviewsParamsQuery Path GetShopsShopReviewsParamsPath }
func (GetShopsShopReviewsParams) HTTP ¶ added in v0.0.3
func (r GetShopsShopReviewsParams) HTTP() *http.Request
func (GetShopsShopReviewsParams) Parse ¶ added in v0.0.3
func (r GetShopsShopReviewsParams) Parse() (GetShopsShopReviewsParams, error)
type GetShopsShopReviewsParamsPath ¶ added in v0.1.18
type GetShopsShopReviewsParamsPath struct {
Shop string
}
type GetShopsShopReviewsParamsQuery ¶ added in v0.1.18
type GetShopsShopReviewsRequest ¶
type GetShopsShopReviewsRequest interface { HTTP() *http.Request Parse() (GetShopsShopReviewsParams, error) }
func GetShopsShopReviewsHTTPRequest ¶ added in v0.0.2
func GetShopsShopReviewsHTTPRequest(r *http.Request) GetShopsShopReviewsRequest
type GetShopsShopReviewsResponse ¶ added in v0.0.2
type GetShopsShopReviewsResponse interface {
// contains filtered or unexported methods
}
func NewGetShopsShopReviewsResponse200 ¶ added in v0.0.2
func NewGetShopsShopReviewsResponse200() GetShopsShopReviewsResponse
func NewGetShopsShopReviewsResponseDefault ¶ added in v0.0.2
func NewGetShopsShopReviewsResponseDefault(code int) GetShopsShopReviewsResponse
type GetShopsShopReviewsResponse200 ¶
type GetShopsShopReviewsResponse200 struct{}
func (GetShopsShopReviewsResponse200) Write ¶ added in v0.0.2
func (r GetShopsShopReviewsResponse200) Write(w http.ResponseWriter)
type GetShopsShopReviewsResponseDefault ¶
type GetShopsShopReviewsResponseDefault struct {
Code int
}
func (GetShopsShopReviewsResponseDefault) Write ¶ added in v0.0.2
func (r GetShopsShopReviewsResponseDefault) Write(w http.ResponseWriter)
type HTTPClient ¶ added in v0.0.2
type HTTPClientFunc ¶ added in v0.0.11
type Nullable ¶ added in v0.1.25
func (Nullable[T]) MarshalJSON ¶ added in v0.1.28
func (*Nullable[T]) UnmarshalJSON ¶ added in v0.1.28
type PostShopsNewHandlerFunc ¶
type PostShopsNewHandlerFunc func(ctx context.Context, r PostShopsNewRequest) PostShopsNewResponse
func (PostShopsNewHandlerFunc) ServeHTTP ¶
func (f PostShopsNewHandlerFunc) ServeHTTP(w http.ResponseWriter, r *http.Request)
type PostShopsNewParams ¶ added in v0.0.3
type PostShopsNewParams struct {
Query PostShopsNewParamsQuery
}
func (PostShopsNewParams) HTTP ¶ added in v0.0.3
func (r PostShopsNewParams) HTTP() *http.Request
func (PostShopsNewParams) Parse ¶ added in v0.0.3
func (r PostShopsNewParams) Parse() (PostShopsNewParams, error)
type PostShopsNewParamsQuery ¶ added in v0.1.18
type PostShopsNewRequest ¶
type PostShopsNewRequest interface { HTTP() *http.Request Parse() (PostShopsNewParams, error) }
func PostShopsNewHTTPRequest ¶ added in v0.0.2
func PostShopsNewHTTPRequest(r *http.Request) PostShopsNewRequest
type PostShopsNewResponse ¶ added in v0.0.2
type PostShopsNewResponse interface {
// contains filtered or unexported methods
}
func NewPostShopsNewResponse200 ¶ added in v0.0.2
func NewPostShopsNewResponse200() PostShopsNewResponse
func NewPostShopsNewResponseDefault ¶ added in v0.0.2
func NewPostShopsNewResponseDefault(code int) PostShopsNewResponse
type PostShopsNewResponse200 ¶
type PostShopsNewResponse200 struct{}
func (PostShopsNewResponse200) Write ¶ added in v0.0.2
func (r PostShopsNewResponse200) Write(w http.ResponseWriter)
type PostShopsNewResponseDefault ¶
type PostShopsNewResponseDefault struct {
Code int
}
func (PostShopsNewResponseDefault) Write ¶ added in v0.0.2
func (r PostShopsNewResponseDefault) Write(w http.ResponseWriter)
Click to show internal directories.
Click to hide internal directories.