Versions in this module Expand all Collapse all v5 v5.0.0 May 6, 2026 Changes in this version + func ApplySecurity(r RequestConfig) + func ExecuteNewRequest(ctx context.Context, method string, u string, body any, dst any, ...) error + type HTTPDoer interface + Do func(req *http.Request) (*http.Response, error) + type PreRequestOptionFunc func(*RequestConfig) error + func (s PreRequestOptionFunc) Apply(r *RequestConfig) error + type RequestConfig struct + AccessToken string + BaseURL *url.URL + Body io.Reader + Context context.Context + CustomHTTPDoer HTTPDoer + DefaultBaseURL *url.URL + HTTPClient *http.Client + MaxRetries int + Middlewares []middleware + Request *http.Request + RequestTimeout time.Duration + ResponseBodyInto any + ResponseInto **http.Response + Security Security + func NewRequestConfig(ctx context.Context, method string, u string, body any, dst any, ...) (*RequestConfig, error) + func PreRequestOptions(opts ...RequestOption) (RequestConfig, error) + func (cfg *RequestConfig) Apply(opts ...RequestOption) error + func (cfg *RequestConfig) Clone(ctx context.Context) *RequestConfig + func (cfg *RequestConfig) Execute() (err error) + type RequestOption interface + Apply func(*RequestConfig) error + func WithBearerAuthSecurity() RequestOption + func WithDefaultBaseURL(baseURL string) RequestOption + func WithSecurity(security Security) RequestOption + type RequestOptionFunc func(*RequestConfig) error + func (s RequestOptionFunc) Apply(r *RequestConfig) error + type Security struct + BearerAuth bool Other modules containing this package github.com/beeper/desktop-api-go