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 GetShopsShopParamsHeaders
- type GetShopsShopParamsPath
- type GetShopsShopParamsQuery
- type GetShopsShopRequest
- type GetShopsShopResponse
- type GetShopsShopResponse200
- type GetShopsShopResponseDefault
- type HTTPClient
- type HTTPClientFunc
- type Maybe
- type Nullable
- type Page
- type PageCustom
- type PageCustom_Schema
- type Pages
- type RequestID
- type Shop
Constants ¶
View Source
const SpecFile string = `` /* 1623-byte string literal not displayed */
Variables ¶
Functions ¶
func SpecFileHandler ¶
Types ¶
type API ¶
type API struct {
GetShopsShopHandler GetShopsShopHandlerFunc
// 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) GetShopsShop ¶
func (c *Client) GetShopsShop(ctx context.Context, request GetShopsShopParams) (GetShopsShopResponse, error)
GetShopsShop GET /shops/{shop}/pages/{page}
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
Headers GetShopsShopParamsHeaders
}
func (GetShopsShopParams) HTTP ¶
func (r GetShopsShopParams) HTTP() *http.Request
func (GetShopsShopParams) Parse ¶
func (r GetShopsShopParams) Parse() (GetShopsShopParams, error)
type GetShopsShopParamsHeaders ¶ added in v0.1.18
type GetShopsShopParamsPath ¶ added in v0.1.18
type GetShopsShopParamsQuery ¶ added in v0.1.18
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 NewGetShopsShopResponse200 ¶
func NewGetShopsShopResponse200() GetShopsShopResponse
func NewGetShopsShopResponseDefault ¶
func NewGetShopsShopResponseDefault(code int) GetShopsShopResponse
type GetShopsShopResponse200 ¶
type GetShopsShopResponse200 struct{}
GetShopsShopResponse200 - OK
func (GetShopsShopResponse200) Write ¶
func (r GetShopsShopResponse200) Write(w http.ResponseWriter)
type GetShopsShopResponseDefault ¶
type GetShopsShopResponseDefault struct {
Code int
}
GetShopsShopResponseDefault - Default
func (GetShopsShopResponseDefault) Write ¶
func (r GetShopsShopResponseDefault) Write(w http.ResponseWriter)
type HTTPClientFunc ¶
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 PageCustom ¶ added in v0.1.10
type PageCustom string
func NewPageCustom ¶ added in v0.1.31
func NewPageCustom(v string) PageCustom
func (PageCustom) String ¶ added in v0.1.31
func (c PageCustom) String() string
type PageCustom_Schema ¶ added in v0.1.31
type PageCustom_Schema string
func NewPageCustom_Schema ¶ added in v0.1.31
func NewPageCustom_Schema(v string) PageCustom_Schema
func (PageCustom_Schema) String ¶ added in v0.1.31
func (c PageCustom_Schema) String() string
type RequestID ¶ added in v0.0.19
type RequestID string
func (*RequestID) ParseString ¶ added in v0.1.15
Click to show internal directories.
Click to hide internal directories.