Documentation
¶
Index ¶
- Constants
- Variables
- func SchemaPath(r *http.Request) (string, bool)
- func SpecFileHandler() http.Handler
- type API
- type Client
- type ErrParseParam
- type GetReviewsHandlerFunc
- type GetReviewsParams
- type GetReviewsParamsHeaders
- type GetReviewsParamsPath
- type GetReviewsParamsQuery
- type GetReviewsRequest
- type GetReviewsResponse
- type GetReviewsResponseDefault
- type HTTPClient
- type HTTPClientFunc
- type Maybe
- type Nullable
Constants ¶
View Source
const SpecFile string = `` /* 2881-byte string literal not displayed */
Variables ¶
Functions ¶
func SpecFileHandler ¶
Types ¶
type API ¶
type API struct { GetReviewsHandler GetReviewsHandlerFunc // 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 ¶
type Client struct { BaseURL string HTTPClient HTTPClient }
func NewClient ¶
func NewClient(baseURL string, httpClient HTTPClient) *Client
func (*Client) GetReviews ¶
func (c *Client) GetReviews(ctx context.Context, request GetReviewsParams) (GetReviewsResponse, error)
GetReviews GET /shops/{shop}/reviews
type ErrParseParam ¶
func (ErrParseParam) Error ¶
func (e ErrParseParam) Error() string
func (ErrParseParam) Unwrap ¶
func (e ErrParseParam) Unwrap() error
type GetReviewsHandlerFunc ¶
type GetReviewsHandlerFunc func(ctx context.Context, r GetReviewsRequest) GetReviewsResponse
func (GetReviewsHandlerFunc) ServeHTTP ¶
func (f GetReviewsHandlerFunc) ServeHTTP(w http.ResponseWriter, r *http.Request)
type GetReviewsParams ¶
type GetReviewsParams struct { Query GetReviewsParamsQuery Path GetReviewsParamsPath Headers GetReviewsParamsHeaders }
func (GetReviewsParams) HTTP ¶
func (r GetReviewsParams) HTTP() *http.Request
func (GetReviewsParams) Parse ¶
func (r GetReviewsParams) Parse() (GetReviewsParams, error)
type GetReviewsParamsHeaders ¶ added in v0.1.18
type GetReviewsParamsPath ¶ added in v0.1.18
type GetReviewsParamsPath struct {
Shop int32
}
type GetReviewsParamsQuery ¶ added in v0.1.18
type GetReviewsRequest ¶
type GetReviewsRequest interface { HTTP() *http.Request Parse() (GetReviewsParams, error) }
func GetReviewsHTTPRequest ¶
func GetReviewsHTTPRequest(r *http.Request) GetReviewsRequest
type GetReviewsResponse ¶
type GetReviewsResponse interface {
// contains filtered or unexported methods
}
func NewGetReviewsResponseDefault ¶
func NewGetReviewsResponseDefault(code int) GetReviewsResponse
type GetReviewsResponseDefault ¶
type GetReviewsResponseDefault struct {
Code int
}
func (GetReviewsResponseDefault) Write ¶
func (r GetReviewsResponseDefault) Write(w http.ResponseWriter)
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
Click to show internal directories.
Click to hide internal directories.