Versions in this module Expand all Collapse all v0 v0.0.3 Oct 4, 2025 v0.0.2 Sep 25, 2025 Changes in this version + func Bool(b bool) param.Opt[bool] + func BoolPtr(v bool) *bool + func DefaultClientOptions() []option.RequestOption + func File(rdr io.Reader, filename string, contentType string) file + func Float(f float64) param.Opt[float64] + func FloatPtr(v float64) *float64 + func Int(i int64) param.Opt[int64] + func IntPtr(v int64) *int64 + func Opt[T comparable](v T) param.Opt[T] + func Ptr[T any](v T) *T + func String(s string) param.Opt[string] + func StringPtr(v string) *string + func Time(t time.Time) param.Opt[time.Time] + func TimePtr(v time.Time) *time.Time + type AbsoluteRedirectGetParams struct + Host string + type AbsoluteRedirectService struct + Options []option.RequestOption + func NewAbsoluteRedirectService(opts ...option.RequestOption) (r AbsoluteRedirectService) + func (r *AbsoluteRedirectService) Get(ctx context.Context, value int64, query AbsoluteRedirectGetParams, ...) (err error) + type AnythingDeleteResponse struct + Args map[string]any + Data map[string]any + Files map[string]any + Form map[string]any + Headers map[string]any + JSON struct{ ... } + Json map[string]any + Method string + Origin string + URL string + func (r *AnythingDeleteResponse) UnmarshalJSON(data []byte) error + func (r AnythingDeleteResponse) RawJSON() string + type AnythingListResponse struct + Args map[string]any + Data map[string]any + Files map[string]any + Form map[string]any + Headers map[string]any + JSON struct{ ... } + Json map[string]any + Method string + Origin string + URL string + func (r *AnythingListResponse) UnmarshalJSON(data []byte) error + func (r AnythingListResponse) RawJSON() string + type AnythingNewResponse struct + Args map[string]any + Data map[string]any + Files map[string]any + Form map[string]any + Headers map[string]any + JSON struct{ ... } + Json map[string]any + Method string + Origin string + URL string + func (r *AnythingNewResponse) UnmarshalJSON(data []byte) error + func (r AnythingNewResponse) RawJSON() string + type AnythingPatchResponse struct + Args map[string]any + Data map[string]any + Files map[string]any + Form map[string]any + Headers map[string]any + JSON struct{ ... } + Json map[string]any + Method string + Origin string + URL string + func (r *AnythingPatchResponse) UnmarshalJSON(data []byte) error + func (r AnythingPatchResponse) RawJSON() string + type AnythingService struct + Options []option.RequestOption + func NewAnythingService(opts ...option.RequestOption) (r AnythingService) + func (r *AnythingService) Delete(ctx context.Context, opts ...option.RequestOption) (res *AnythingDeleteResponse, err error) + func (r *AnythingService) List(ctx context.Context, opts ...option.RequestOption) (res *AnythingListResponse, err error) + func (r *AnythingService) New(ctx context.Context, opts ...option.RequestOption) (res *AnythingNewResponse, err error) + func (r *AnythingService) Patch(ctx context.Context, opts ...option.RequestOption) (res *AnythingPatchResponse, err error) + func (r *AnythingService) Update(ctx context.Context, opts ...option.RequestOption) (res *AnythingUpdateResponse, err error) + type AnythingUpdateResponse struct + Args map[string]any + Data map[string]any + Files map[string]any + Form map[string]any + Headers map[string]any + JSON struct{ ... } + Json map[string]any + Method string + Origin string + URL string + func (r *AnythingUpdateResponse) UnmarshalJSON(data []byte) error + func (r AnythingUpdateResponse) RawJSON() string + type BasicAuthAuthenticateParams struct + User string + type BasicAuthAuthenticateResponse struct + Authenticated bool + JSON struct{ ... } + User string + func (r *BasicAuthAuthenticateResponse) UnmarshalJSON(data []byte) error + func (r BasicAuthAuthenticateResponse) RawJSON() string + type BasicAuthService struct + Options []option.RequestOption + func NewBasicAuthService(opts ...option.RequestOption) (r BasicAuthService) + func (r *BasicAuthService) Authenticate(ctx context.Context, passwd string, query BasicAuthAuthenticateParams, ...) (res *BasicAuthAuthenticateResponse, err error) + type BearerGetParams struct + Required param.Opt[bool] + func (r BearerGetParams) URLQuery() (v url.Values, err error) + type BearerGetResponse struct + Authenticated bool + JSON struct{ ... } + Token string + func (r *BearerGetResponse) UnmarshalJSON(data []byte) error + func (r BearerGetResponse) RawJSON() string + type BearerService struct + Options []option.RequestOption + func NewBearerService(opts ...option.RequestOption) (r BearerService) + func (r *BearerService) Get(ctx context.Context, query BearerGetParams, opts ...option.RequestOption) (res *BearerGetResponse, err error) + type BrotliService struct + Options []option.RequestOption + func NewBrotliService(opts ...option.RequestOption) (r BrotliService) + func (r *BrotliService) Delete(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + func (r *BrotliService) Get(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + func (r *BrotliService) Modify(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + func (r *BrotliService) New(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + func (r *BrotliService) Update(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + type CacheService struct + Options []option.RequestOption + func NewCacheService(opts ...option.RequestOption) (r CacheService) + func (r *CacheService) Get(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + func (r *CacheService) SetCacheControl(ctx context.Context, value int64, opts ...option.RequestOption) (res *string, err error) + type Client struct + AbsoluteRedirect AbsoluteRedirectService + Anything AnythingService + BasicAuth BasicAuthService + Bearer BearerService + Brotli BrotliService + Cache CacheService + Cookies CookieService + Deflate DeflateService + Delete DeleteService + Deny DenyService + DigestAuth DigestAuthService + Etag EtagService + Get GetService + Gzip GzipService + HTML HTMLService + Headers HeaderService + IP IPService + Json JsonService + Options []option.RequestOption + Patch PatchService + Plain PlainService + Post PostService + Put PutService + RedirectTo RedirectToService + RelativeRedirect RelativeRedirectService + ResponseHeaders ResponseHeaderService + Status StatusService + Text TextService + UserAgent UserAgentService + Xml XmlService + func NewClient(opts ...option.RequestOption) (r Client) + func (r *Client) DeleteRequest(ctx context.Context, path string, params any, res any, ...) error + func (r *Client) Execute(ctx context.Context, method string, path string, params any, res any, ...) error + func (r *Client) GetRequest(ctx context.Context, path string, params any, res any, ...) error + func (r *Client) PatchRequest(ctx context.Context, path string, params any, res any, ...) error + func (r *Client) PostRequest(ctx context.Context, path string, params any, res any, ...) error + func (r *Client) PutRequest(ctx context.Context, path string, params any, res any, ...) error + type CookieDeleteParams struct + Name string + func (r CookieDeleteParams) URLQuery() (v url.Values, err error) + type CookieListResponse struct + Cookies map[string]string + JSON struct{ ... } + func (r *CookieListResponse) UnmarshalJSON(data []byte) error + func (r CookieListResponse) RawJSON() string + type CookieNewParams struct + Expires param.Opt[time.Time] + Name string + Value string + func (r *CookieNewParams) UnmarshalJSON(data []byte) error + func (r CookieNewParams) MarshalJSON() (data []byte, err error) + type CookieNewResponse struct + Cookies map[string]string + JSON struct{ ... } + func (r *CookieNewResponse) UnmarshalJSON(data []byte) error + func (r CookieNewResponse) RawJSON() string + type CookieService struct + Options []option.RequestOption + func NewCookieService(opts ...option.RequestOption) (r CookieService) + func (r *CookieService) Delete(ctx context.Context, body CookieDeleteParams, opts ...option.RequestOption) (err error) + func (r *CookieService) List(ctx context.Context, opts ...option.RequestOption) (res *CookieListResponse, err error) + func (r *CookieService) New(ctx context.Context, body CookieNewParams, opts ...option.RequestOption) (res *CookieNewResponse, err error) + type DeflateService struct + Options []option.RequestOption + func NewDeflateService(opts ...option.RequestOption) (r DeflateService) + func (r *DeflateService) Delete(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + func (r *DeflateService) Get(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + func (r *DeflateService) Modify(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + func (r *DeflateService) New(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + func (r *DeflateService) Update(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + type DeletePerformParams struct + Body map[string]any + func (r *DeletePerformParams) UnmarshalJSON(data []byte) error + func (r DeletePerformParams) MarshalJSON() (data []byte, err error) + type DeletePerformResponse struct + Body map[string]any + Headers map[string]string + JSON struct{ ... } + Method string + func (r *DeletePerformResponse) UnmarshalJSON(data []byte) error + func (r DeletePerformResponse) RawJSON() string + type DeleteService struct + Options []option.RequestOption + func NewDeleteService(opts ...option.RequestOption) (r DeleteService) + func (r *DeleteService) Perform(ctx context.Context, body DeletePerformParams, opts ...option.RequestOption) (res *DeletePerformResponse, err error) + type DenyService struct + Options []option.RequestOption + func NewDenyService(opts ...option.RequestOption) (r DenyService) + func (r *DenyService) Delete(ctx context.Context, opts ...option.RequestOption) (err error) + func (r *DenyService) Get(ctx context.Context, opts ...option.RequestOption) (err error) + func (r *DenyService) Modify(ctx context.Context, opts ...option.RequestOption) (err error) + func (r *DenyService) New(ctx context.Context, opts ...option.RequestOption) (err error) + func (r *DenyService) Update(ctx context.Context, opts ...option.RequestOption) (err error) + type DigestAuthGetParams struct + Qop string + User string + type DigestAuthGetWithAlgorithmParams struct + Passwd string + Qop string + User string + type DigestAuthGetWithAlgorithmStaleAfterParams struct + Algorithm string + Passwd string + Qop string + User string + type DigestAuthService struct + Options []option.RequestOption + func NewDigestAuthService(opts ...option.RequestOption) (r DigestAuthService) + func (r *DigestAuthService) Get(ctx context.Context, passwd string, query DigestAuthGetParams, ...) (err error) + func (r *DigestAuthService) GetWithAlgorithm(ctx context.Context, algorithm string, query DigestAuthGetWithAlgorithmParams, ...) (err error) + func (r *DigestAuthService) GetWithAlgorithmStaleAfter(ctx context.Context, staleAfter string, ...) (err error) + type Error = apierror.Error + type EtagService struct + Options []option.RequestOption + func NewEtagService(opts ...option.RequestOption) (r EtagService) + func (r *EtagService) Get(ctx context.Context, etag string, opts ...option.RequestOption) (res *string, err error) + type GetRequestInfoResponse struct + Headers map[string]string + JSON struct{ ... } + Method string + QueryParams map[string]string + func (r *GetRequestInfoResponse) UnmarshalJSON(data []byte) error + func (r GetRequestInfoResponse) RawJSON() string + type GetService struct + Options []option.RequestOption + func NewGetService(opts ...option.RequestOption) (r GetService) + func (r *GetService) RequestInfo(ctx context.Context, opts ...option.RequestOption) (res *GetRequestInfoResponse, err error) + type GzipService struct + Options []option.RequestOption + func NewGzipService(opts ...option.RequestOption) (r GzipService) + func (r *GzipService) Delete(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + func (r *GzipService) Get(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + func (r *GzipService) Modify(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + func (r *GzipService) New(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + func (r *GzipService) Update(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + type HTMLService struct + Options []option.RequestOption + func NewHTMLService(opts ...option.RequestOption) (r HTMLService) + func (r *HTMLService) Delete(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + func (r *HTMLService) Get(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + func (r *HTMLService) Modify(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + func (r *HTMLService) New(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + func (r *HTMLService) Update(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + type HeaderListResponse struct + Headers map[string]string + JSON struct{ ... } + func (r *HeaderListResponse) UnmarshalJSON(data []byte) error + func (r HeaderListResponse) RawJSON() string + type HeaderService struct + Options []option.RequestOption + func NewHeaderService(opts ...option.RequestOption) (r HeaderService) + func (r *HeaderService) List(ctx context.Context, opts ...option.RequestOption) (res *HeaderListResponse, err error) + type IPGetResponse struct + IP string + JSON struct{ ... } + func (r *IPGetResponse) UnmarshalJSON(data []byte) error + func (r IPGetResponse) RawJSON() string + type IPService struct + Options []option.RequestOption + func NewIPService(opts ...option.RequestOption) (r IPService) + func (r *IPService) Get(ctx context.Context, opts ...option.RequestOption) (res *IPGetResponse, err error) + type JsonDeleteResponse map[string]any + type JsonGetResponse map[string]any + type JsonModifyResponse map[string]any + type JsonNewResponse map[string]any + type JsonService struct + Options []option.RequestOption + func NewJsonService(opts ...option.RequestOption) (r JsonService) + func (r *JsonService) Delete(ctx context.Context, opts ...option.RequestOption) (res *JsonDeleteResponse, err error) + func (r *JsonService) Get(ctx context.Context, opts ...option.RequestOption) (res *JsonGetResponse, err error) + func (r *JsonService) Modify(ctx context.Context, opts ...option.RequestOption) (res *JsonModifyResponse, err error) + func (r *JsonService) New(ctx context.Context, opts ...option.RequestOption) (res *JsonNewResponse, err error) + func (r *JsonService) Update(ctx context.Context, opts ...option.RequestOption) (res *JsonUpdateResponse, err error) + type JsonUpdateResponse map[string]any + type PatchHandleParams struct + Body map[string]any + func (r *PatchHandleParams) UnmarshalJSON(data []byte) error + func (r PatchHandleParams) MarshalJSON() (data []byte, err error) + type PatchHandleResponse struct + Body map[string]any + Headers map[string]string + JSON struct{ ... } + Method string + func (r *PatchHandleResponse) UnmarshalJSON(data []byte) error + func (r PatchHandleResponse) RawJSON() string + type PatchService struct + Options []option.RequestOption + func NewPatchService(opts ...option.RequestOption) (r PatchService) + func (r *PatchService) Handle(ctx context.Context, body PatchHandleParams, opts ...option.RequestOption) (res *PatchHandleResponse, err error) + type PlainService struct + Options []option.RequestOption + func NewPlainService(opts ...option.RequestOption) (r PlainService) + func (r *PlainService) Delete(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + func (r *PlainService) Get(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + func (r *PlainService) Modify(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + func (r *PlainService) New(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + func (r *PlainService) Update(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + type PostNewParams struct + Body map[string]any + func (r *PostNewParams) UnmarshalJSON(data []byte) error + func (r PostNewParams) MarshalJSON() (data []byte, err error) + type PostNewResponse struct + Body map[string]any + Headers map[string]string + JSON struct{ ... } + Method string + func (r *PostNewResponse) UnmarshalJSON(data []byte) error + func (r PostNewResponse) RawJSON() string + type PostService struct + Options []option.RequestOption + func NewPostService(opts ...option.RequestOption) (r PostService) + func (r *PostService) New(ctx context.Context, body PostNewParams, opts ...option.RequestOption) (res *PostNewResponse, err error) + type PutHandleParams struct + Body map[string]any + func (r *PutHandleParams) UnmarshalJSON(data []byte) error + func (r PutHandleParams) MarshalJSON() (data []byte, err error) + type PutHandleResponse struct + Body map[string]any + Headers map[string]string + JSON struct{ ... } + Method string + func (r *PutHandleResponse) UnmarshalJSON(data []byte) error + func (r PutHandleResponse) RawJSON() string + type PutService struct + Options []option.RequestOption + func NewPutService(opts ...option.RequestOption) (r PutService) + func (r *PutService) Handle(ctx context.Context, body PutHandleParams, opts ...option.RequestOption) (res *PutHandleResponse, err error) + type RedirectToDeleteParams struct + StatusCode param.Opt[string] + URL string + func (r RedirectToDeleteParams) URLQuery() (v url.Values, err error) + type RedirectToGetParams struct + StatusCode param.Opt[string] + URL string + func (r RedirectToGetParams) URLQuery() (v url.Values, err error) + type RedirectToModifyParams struct + StatusCode param.Opt[string] + URL string + func (r RedirectToModifyParams) URLQuery() (v url.Values, err error) + type RedirectToNewParams struct + StatusCode param.Opt[string] + URL string + func (r RedirectToNewParams) URLQuery() (v url.Values, err error) + type RedirectToService struct + Options []option.RequestOption + func NewRedirectToService(opts ...option.RequestOption) (r RedirectToService) + func (r *RedirectToService) Delete(ctx context.Context, body RedirectToDeleteParams, opts ...option.RequestOption) (err error) + func (r *RedirectToService) Get(ctx context.Context, query RedirectToGetParams, opts ...option.RequestOption) (err error) + func (r *RedirectToService) Modify(ctx context.Context, body RedirectToModifyParams, opts ...option.RequestOption) (err error) + func (r *RedirectToService) New(ctx context.Context, body RedirectToNewParams, opts ...option.RequestOption) (err error) + func (r *RedirectToService) Update(ctx context.Context, body RedirectToUpdateParams, opts ...option.RequestOption) (err error) + type RedirectToUpdateParams struct + StatusCode param.Opt[string] + URL string + func (r RedirectToUpdateParams) URLQuery() (v url.Values, err error) + type RelativeRedirectGetParams struct + Host string + type RelativeRedirectService struct + Options []option.RequestOption + func NewRelativeRedirectService(opts ...option.RequestOption) (r RelativeRedirectService) + func (r *RelativeRedirectService) Get(ctx context.Context, value int64, query RelativeRedirectGetParams, ...) (err error) + type ResponseHeaderGetParams struct + AdditionalProperties param.Opt[bool] + Description param.Opt[string] + Type param.Opt[string] + func (r ResponseHeaderGetParams) URLQuery() (v url.Values, err error) + type ResponseHeaderGetResponse map[string]any + type ResponseHeaderNewParams struct + AdditionalProperties param.Opt[bool] + Description param.Opt[string] + Type param.Opt[string] + func (r ResponseHeaderNewParams) URLQuery() (v url.Values, err error) + type ResponseHeaderNewResponse map[string]any + type ResponseHeaderService struct + Options []option.RequestOption + func NewResponseHeaderService(opts ...option.RequestOption) (r ResponseHeaderService) + func (r *ResponseHeaderService) Get(ctx context.Context, query ResponseHeaderGetParams, ...) (res *ResponseHeaderGetResponse, err error) + func (r *ResponseHeaderService) New(ctx context.Context, body ResponseHeaderNewParams, ...) (res *ResponseHeaderNewResponse, err error) + type StatusDeleteResponse struct + JSON struct{ ... } + Status string + func (r *StatusDeleteResponse) UnmarshalJSON(data []byte) error + func (r StatusDeleteResponse) RawJSON() string + type StatusGetResponse struct + JSON struct{ ... } + Status string + func (r *StatusGetResponse) UnmarshalJSON(data []byte) error + func (r StatusGetResponse) RawJSON() string + type StatusNewResponse struct + JSON struct{ ... } + Status string + func (r *StatusNewResponse) UnmarshalJSON(data []byte) error + func (r StatusNewResponse) RawJSON() string + type StatusPatchResponse struct + JSON struct{ ... } + Status string + func (r *StatusPatchResponse) UnmarshalJSON(data []byte) error + func (r StatusPatchResponse) RawJSON() string + type StatusService struct + Options []option.RequestOption + func NewStatusService(opts ...option.RequestOption) (r StatusService) + func (r *StatusService) Delete(ctx context.Context, code string, opts ...option.RequestOption) (res *StatusDeleteResponse, err error) + func (r *StatusService) Get(ctx context.Context, code string, opts ...option.RequestOption) (res *StatusGetResponse, err error) + func (r *StatusService) New(ctx context.Context, code string, opts ...option.RequestOption) (res *StatusNewResponse, err error) + func (r *StatusService) Patch(ctx context.Context, code string, opts ...option.RequestOption) (res *StatusPatchResponse, err error) + func (r *StatusService) Update(ctx context.Context, code string, opts ...option.RequestOption) (res *StatusUpdateResponse, err error) + type StatusUpdateResponse struct + JSON struct{ ... } + Status string + func (r *StatusUpdateResponse) UnmarshalJSON(data []byte) error + func (r StatusUpdateResponse) RawJSON() string + type TextService struct + Options []option.RequestOption + func NewTextService(opts ...option.RequestOption) (r TextService) + func (r *TextService) DeleteRandom(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + func (r *TextService) GetRandom(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + func (r *TextService) ModifyRandom(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + func (r *TextService) NewRandom(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + func (r *TextService) UpdateRandom(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + type UserAgentGetResponse struct + JSON struct{ ... } + UserAgent string + func (r *UserAgentGetResponse) UnmarshalJSON(data []byte) error + func (r UserAgentGetResponse) RawJSON() string + type UserAgentService struct + Options []option.RequestOption + func NewUserAgentService(opts ...option.RequestOption) (r UserAgentService) + func (r *UserAgentService) Get(ctx context.Context, opts ...option.RequestOption) (res *UserAgentGetResponse, err error) + type XmlService struct + Options []option.RequestOption + func NewXmlService(opts ...option.RequestOption) (r XmlService) + func (r *XmlService) Delete(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + func (r *XmlService) Get(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + func (r *XmlService) Modify(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + func (r *XmlService) New(ctx context.Context, opts ...option.RequestOption) (res *string, err error) + func (r *XmlService) Update(ctx context.Context, opts ...option.RequestOption) (res *string, err error)