Versions in this module Expand all Collapse all v0 v0.1.36 Feb 10, 2025 v0.1.35 Feb 7, 2025 v0.1.34 Feb 6, 2025 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 + GetPetsHandler GetPetsHandlerFunc + Middlewares []func(h http.Handler) http.Handler + NotFoundHandler http.Handler + 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) GetPets(ctx context.Context, request GetPetsParams) (GetPetsResponse, error) + type ErrParseParam struct + Err error + In string + Parameter string + Reason string + func (e ErrParseParam) Error() string + func (e ErrParseParam) Unwrap() error + type GetPetsHandlerFunc func(ctx context.Context, r GetPetsRequest) GetPetsResponse + func (f GetPetsHandlerFunc) ServeHTTP(w http.ResponseWriter, r *http.Request) + type GetPetsParams struct + func (r GetPetsParams) HTTP() *http.Request + func (r GetPetsParams) Parse() GetPetsParams + type GetPetsRequest interface + HTTP func() *http.Request + Parse func() GetPetsParams + func GetPetsHTTPRequest(r *http.Request) GetPetsRequest + type GetPetsResponse interface + func NewGetPetsResponse200JSON(body GetPetsResponse200JSONBody) GetPetsResponse + type GetPetsResponse200JSON struct + Body GetPetsResponse200JSONBody + func (r GetPetsResponse200JSON) Write(w http.ResponseWriter) + type GetPetsResponse200JSONBody struct + Array []string + Nullable Nullable[[]string] + func (c *GetPetsResponse200JSONBody) UnmarshalJSON(bs []byte) error + func (c GetPetsResponse200JSONBody) MarshalJSON() ([]byte, 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 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)