Documentation
¶
Index ¶
- Constants
- Variables
- func SchemaPath(r *http.Request) (string, bool)
- func SpecFileHandler() http.Handler
- type API
- type Client
- type ErrParseParam
- type HTTPClient
- type HTTPClientFunc
- type Maybe
- type Nullable
- type Organization
- type Page
- type Pages
- type PostShopsShopStringSepShopSchemaPetsHandlerFunc
- type PostShopsShopStringSepShopSchemaPetsParams
- type PostShopsShopStringSepShopSchemaPetsParamsHeaders
- type PostShopsShopStringSepShopSchemaPetsParamsPath
- type PostShopsShopStringSepShopSchemaPetsParamsQuery
- type PostShopsShopStringSepShopSchemaPetsRequest
- type PostShopsShopStringSepShopSchemaPetsResponse
- type PostShopsShopStringSepShopSchemaPetsResponse200
- type Shop
- type Shopa
- type Shopb
- type Shopc
- type Shops
Constants ¶
View Source
const SpecFile string = `` /* 2799-byte string literal not displayed */
Variables ¶
Functions ¶
func SpecFileHandler ¶
Types ¶
type API ¶
type API struct {
PostShopsShopStringSepShopSchemaPetsHandler PostShopsShopStringSepShopSchemaPetsHandlerFunc
// 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) PostShopsShopStringSepShopSchemaPets ¶
func (c *Client) PostShopsShopStringSepShopSchemaPets(ctx context.Context, request PostShopsShopStringSepShopSchemaPetsParams) (PostShopsShopStringSepShopSchemaPetsResponse, error)
PostShopsShopStringSepShopSchemaPets POST /shops/{shop_string}/sep/{shop_schema}/pets
type ErrParseParam ¶
func (ErrParseParam) Error ¶
func (e ErrParseParam) Error() string
func (ErrParseParam) Unwrap ¶
func (e ErrParseParam) Unwrap() error
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 Organization ¶
type Organization int
func NewOrganization ¶ added in v0.1.23
func NewOrganization(v int) Organization
func (Organization) Int ¶ added in v0.1.23
func (c Organization) Int() int
type PostShopsShopStringSepShopSchemaPetsHandlerFunc ¶
type PostShopsShopStringSepShopSchemaPetsHandlerFunc func(ctx context.Context, r PostShopsShopStringSepShopSchemaPetsRequest) PostShopsShopStringSepShopSchemaPetsResponse
func (PostShopsShopStringSepShopSchemaPetsHandlerFunc) ServeHTTP ¶
func (f PostShopsShopStringSepShopSchemaPetsHandlerFunc) ServeHTTP(w http.ResponseWriter, r *http.Request)
type PostShopsShopStringSepShopSchemaPetsParams ¶
type PostShopsShopStringSepShopSchemaPetsParams struct {
Query PostShopsShopStringSepShopSchemaPetsParamsQuery
Path PostShopsShopStringSepShopSchemaPetsParamsPath
Headers PostShopsShopStringSepShopSchemaPetsParamsHeaders
}
func (PostShopsShopStringSepShopSchemaPetsParams) HTTP ¶
func (r PostShopsShopStringSepShopSchemaPetsParams) HTTP() *http.Request
type PostShopsShopStringSepShopSchemaPetsParamsHeaders ¶ added in v0.1.18
type PostShopsShopStringSepShopSchemaPetsParamsHeaders struct {
XOrganizationInt Maybe[int]
XOrganizationSchema Maybe[Organization]
XOrganizationIntRequired int
XOrganizationSchemaRequired Organization
}
type PostShopsShopStringSepShopSchemaPetsParamsPath ¶ added in v0.1.18
type PostShopsShopStringSepShopSchemaPetsParamsQuery ¶ added in v0.1.18
type PostShopsShopStringSepShopSchemaPetsRequest ¶
type PostShopsShopStringSepShopSchemaPetsRequest interface {
HTTP() *http.Request
Parse() (PostShopsShopStringSepShopSchemaPetsParams, error)
}
func PostShopsShopStringSepShopSchemaPetsHTTPRequest ¶
func PostShopsShopStringSepShopSchemaPetsHTTPRequest(r *http.Request) PostShopsShopStringSepShopSchemaPetsRequest
type PostShopsShopStringSepShopSchemaPetsResponse ¶
type PostShopsShopStringSepShopSchemaPetsResponse interface {
// contains filtered or unexported methods
}
func NewPostShopsShopStringSepShopSchemaPetsResponse200 ¶
func NewPostShopsShopStringSepShopSchemaPetsResponse200() PostShopsShopStringSepShopSchemaPetsResponse
type PostShopsShopStringSepShopSchemaPetsResponse200 ¶
type PostShopsShopStringSepShopSchemaPetsResponse200 struct{}
PostShopsShopStringSepShopSchemaPetsResponse200 - OK response
func (PostShopsShopStringSepShopSchemaPetsResponse200) Write ¶
func (r PostShopsShopStringSepShopSchemaPetsResponse200) Write(w http.ResponseWriter)
Click to show internal directories.
Click to hide internal directories.