Versions in this module Expand all Collapse all v1 v1.0.0 Nov 16, 2024 v0 v0.1.36 Feb 10, 2025 v0.1.35 Feb 7, 2025 v0.1.34 Feb 6, 2025 v0.1.33 Jan 31, 2025 v0.1.32 Jan 30, 2025 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) type Pet + Parents Nullable[PetParents] + func (c *Pet) UnmarshalJSON(bs []byte) error + func (c Pet) MarshalJSON() ([]byte, error) + type PetParents struct + AdditionalProperties map[string]any + func (c *PetParents) UnmarshalJSON(bs []byte) error + func (c PetParents) 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 + 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 + PostPetsHandler PostPetsHandlerFunc + SpecFileHandler http.Handler + func (a API) TestClient() *Client + 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) + 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 Nothing[T any]() Maybe[T] + func (m *Maybe[T]) Set(v T) + func (m Maybe[T]) Get() (zero T, _ bool) + type NewPet struct + Name string + Tag Nullable[string] + Tago Maybe[Nullable[string]] + type Nullable struct + IsSet bool + Value T + func Null[T any]() Nullable[T] + func Pointer[T any](v T) Nullable[T] + func (m *Nullable[T]) Set(v T) + func (m *Nullable[T]) UnmarshalJSON(bs []byte) error + func (m Nullable[T]) Get() (zero T, _ bool) + func (m Nullable[T]) MarshalJSON() ([]byte, error) + type Pet struct + ID int64 + Name string + Tag Nullable[string] + Tago Maybe[Nullable[string]] + type PetResponse struct + Body Pet + func NewPetResponse(body Pet) PetResponse + func (r PetResponse) Write(w http.ResponseWriter, code int) + 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