Versions in this module Expand all Collapse all v1 v1.0.0 Nov 16, 2024 v0 v0.1.31 Dec 2, 2024 Changes in this version type NewPet + func (c *NewPet) UnmarshalJSON(bs []byte) error + func (c NewPet) MarshalJSON() ([]byte, error) v0.1.30 Nov 16, 2024 v0.1.29 Oct 23, 2024 v0.1.28 Sep 30, 2024 Changes in this version type API + func (a API) TestClient() *Client type Nullable + func (m *Nullable[T]) UnmarshalJSON(bs []byte) error + func (m Nullable[T]) MarshalJSON() ([]byte, error) v0.1.27 Sep 10, 2024 Changes in this version type Maybe + func Nothing[T any]() Maybe[T] + func (m Maybe[T]) Get() (zero T, _ bool) type Nullable + func Null[T any]() Nullable[T] + func Pointer[T any](v T) Nullable[T] + func (m Nullable[T]) Get() (zero T, _ bool) v0.1.26 Sep 9, 2024 v0.1.25 Sep 4, 2024 Changes in this version + type Nullable struct + IsSet bool + Value T + func Ptr[T any](v T) Nullable[T] + func (m *Nullable[T]) Set(v T) v0.1.24 Aug 25, 2024 Changes in this version + const SpecFile + var LogError = func(err error) + func SchemaPath(r *http.Request) (string, bool) + func SpecFileHandler() http.Handler + type API struct + Middlewares []func(h http.Handler) http.Handler + NotFoundHandler http.Handler + PostPets2Handler PostPets2HandlerFunc + PostPetsHandler PostPetsHandlerFunc + SpecFileHandler http.Handler + func (rt *API) ServeHTTP(rw http.ResponseWriter, r *http.Request) + type Client struct + BaseURL string + HTTPClient HTTPClient + func NewClient(baseURL string, httpClient HTTPClient) *Client + func (c *Client) PostPets(ctx context.Context, request PostPetsParams) (PostPetsResponse, error) + func (c *Client) PostPets2(ctx context.Context, request PostPets2Params) (PostPets2Response, error) + type ErrParseParam struct + Err error + In string + Parameter string + Reason string + func (e ErrParseParam) Error() string + func (e ErrParseParam) Unwrap() error + type HTTPClient interface + Do func(*http.Request) (*http.Response, error) + type HTTPClientFunc func(*http.Request) (*http.Response, error) + func (f HTTPClientFunc) Do(r *http.Request) (*http.Response, error) + type Maybe struct + IsSet bool + Value T + func Just[T any](v T) Maybe[T] + func (m *Maybe[T]) Set(v T) + type NewPet struct + Name string + Tag string + type NewPetJSON NewPet + type Pets2JSON NewPetJSON + type PostPets2HandlerFunc func(ctx context.Context, r PostPets2Request) PostPets2Response + func (f PostPets2HandlerFunc) ServeHTTP(w http.ResponseWriter, r *http.Request) + type PostPets2Params struct + Body Pets2JSON + func (r PostPets2Params) HTTP() *http.Request + func (r PostPets2Params) Parse() (PostPets2Params, error) + type PostPets2Request interface + HTTP func() *http.Request + Parse func() (PostPets2Params, error) + func PostPets2HTTPRequest(r *http.Request) PostPets2Request + type PostPets2Response interface + func NewPostPets2Response201() PostPets2Response + func NewPostPets2ResponseDefault(code int) PostPets2Response + type PostPets2Response201 struct + func (r PostPets2Response201) Write(w http.ResponseWriter) + type PostPets2ResponseDefault struct + Code int + func (r PostPets2ResponseDefault) Write(w http.ResponseWriter) + type PostPetsHandlerFunc func(ctx context.Context, r PostPetsRequest) PostPetsResponse + func (f PostPetsHandlerFunc) ServeHTTP(w http.ResponseWriter, r *http.Request) + type PostPetsParams struct + Body NewPet + func (r PostPetsParams) HTTP() *http.Request + func (r PostPetsParams) Parse() (PostPetsParams, error) + type PostPetsRequest interface + HTTP func() *http.Request + Parse func() (PostPetsParams, error) + func PostPetsHTTPRequest(r *http.Request) PostPetsRequest + type PostPetsResponse interface + func NewPostPetsResponse201() PostPetsResponse + func NewPostPetsResponseDefault(code int) PostPetsResponse + type PostPetsResponse201 struct + func (r PostPetsResponse201) Write(w http.ResponseWriter) + type PostPetsResponseDefault struct + Code int + func (r PostPetsResponseDefault) Write(w http.ResponseWriter)