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
Constants ¶
View Source
const SpecFile string = `` /* 416-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 ¶ 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}
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 Headers GetShopsShopParamsHeaders }
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 GetShopsShopParamsHeaders ¶ added in v0.1.18
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 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
Click to show internal directories.
Click to hide internal directories.