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
- type Maybe
- type Page
- type RequestID
- type Shop
Constants ¶
View Source
const SpecFile string = `` /* 858-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 struct { Page Maybe[Page] PageReq Page Pages Maybe[[]Page] } Path struct { Shop Shop } Headers struct { RequestID Maybe[RequestID] } }
func (GetShopsShopParams) HTTP ¶
func (r GetShopsShopParams) HTTP() *http.Request
func (GetShopsShopParams) Parse ¶
func (r GetShopsShopParams) Parse() (GetShopsShopParams, error)
type GetShopsShopRequest ¶
type GetShopsShopRequest interface { HTTP() *http.Request Parse() (GetShopsShopParams, error) }
func GetShopsShopHTTPRequest ¶
func GetShopsShopHTTPRequest(r *http.Request) GetShopsShopRequest
type GetShopsShopResponse ¶
type GetShopsShopResponse interface { Write(w http.ResponseWriter) // contains filtered or unexported methods }
func NewGetShopsShopResponse200 ¶
func NewGetShopsShopResponse200() GetShopsShopResponse
func NewGetShopsShopResponseDefault ¶
func NewGetShopsShopResponseDefault(code int) GetShopsShopResponse
type GetShopsShopResponse200 ¶
type GetShopsShopResponse200 struct{}
func (GetShopsShopResponse200) Write ¶
func (r GetShopsShopResponse200) Write(w http.ResponseWriter)
type GetShopsShopResponseDefault ¶
type GetShopsShopResponseDefault struct {
Code int
}
func (GetShopsShopResponseDefault) Write ¶
func (r GetShopsShopResponseDefault) Write(w http.ResponseWriter)
type HTTPClientFunc ¶
Click to show internal directories.
Click to hide internal directories.