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 GetShopsShopParamsPath
- type GetShopsShopParamsQuery
- type GetShopsShopRequest
- type GetShopsShopResponse
- type GetShopsShopResponse200JSON
- type GetShopsShopResponseDefault
- type HTTPClient
- type HTTPClientFunc
- type Maybe
- type PageCustom
- type Shop
- type ShopName
Constants ¶
View Source
const SpecFile string = `` /* 992-byte string literal not displayed */
Variables ¶
Functions ¶
func SpecFileHandler ¶
Types ¶
type API ¶
type Client ¶
type Client struct { BaseURL string HTTPClient HTTPClient }
func NewClient ¶
func NewClient(baseURL string, httpClient HTTPClient) *Client
func (*Client) GetShopsShop ¶
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 ¶
type GetShopsShopParams struct { Query GetShopsShopParamsQuery Path GetShopsShopParamsPath }
func (GetShopsShopParams) HTTP ¶
func (r GetShopsShopParams) HTTP() *http.Request
func (GetShopsShopParams) Parse ¶
func (r GetShopsShopParams) Parse() (GetShopsShopParams, error)
type GetShopsShopParamsPath ¶ added in v0.1.18
type GetShopsShopParamsPath struct {
Shop Shop
}
type GetShopsShopParamsQuery ¶ added in v0.1.18
type GetShopsShopParamsQuery struct { PageSchemaRefQuery Maybe[PageCustom] PageCustomTypeQuery Maybe[pkg.PageCustomTypeQuery] }
type GetShopsShopRequest ¶
type GetShopsShopRequest interface { HTTP() *http.Request Parse() (GetShopsShopParams, error) }
func GetShopsShopHTTPRequest ¶
func GetShopsShopHTTPRequest(r *http.Request) GetShopsShopRequest
type GetShopsShopResponse ¶
type GetShopsShopResponse interface {
// contains filtered or unexported methods
}
func NewGetShopsShopResponse200JSON ¶
func NewGetShopsShopResponse200JSON(body Shop) GetShopsShopResponse
func NewGetShopsShopResponseDefault ¶
func NewGetShopsShopResponseDefault(code int) GetShopsShopResponse
type GetShopsShopResponse200JSON ¶
type GetShopsShopResponse200JSON struct {
Body Shop
}
func (GetShopsShopResponse200JSON) Write ¶
func (r GetShopsShopResponse200JSON) Write(w http.ResponseWriter)
type GetShopsShopResponseDefault ¶
type GetShopsShopResponseDefault struct {
Code int
}
func (GetShopsShopResponseDefault) Write ¶
func (r GetShopsShopResponseDefault) Write(w http.ResponseWriter)
type HTTPClientFunc ¶
type PageCustom ¶
Click to show internal directories.
Click to hide internal directories.