Versions in this module Expand all Collapse all v0 v0.1.0 Feb 4, 2026 Changes in this version + type Client struct + func NewClient(opts ...ClientOption) *Client + func (c *Client) Delete(ctx context.Context, path string) ([]byte, error) + func (c *Client) Do(req *http.Request) (*http.Response, error) + func (c *Client) Get(ctx context.Context, path string) ([]byte, error) + func (c *Client) Patch(ctx context.Context, path string, body interface{}) ([]byte, error) + func (c *Client) Post(ctx context.Context, path string, body interface{}) ([]byte, error) + func (c *Client) Put(ctx context.Context, path string, body interface{}) ([]byte, error) + func (c *Client) Request(ctx context.Context, method, path string, body interface{}) ([]byte, error) + func (c *Client) SetAccessToken(token string) + func (c *Client) SetBaseURL(url string) + type ClientOption func(*Client) + func WithAPIVersion(version string) ClientOption + func WithAccessToken(token string) ClientOption + func WithBaseURL(url string) ClientOption + func WithHTTPClient(client *http.Client) ClientOption + func WithLogger(logger types.Logger) ClientOption + func WithMiddleware(middleware ...Middleware) ClientOption + func WithRetry(maxRetries int, waitMin, waitMax time.Duration) ClientOption + func WithTokenProvider(provider TokenProvider) ClientOption + type DefaultLogger struct + func NewDefaultLogger(debug bool) *DefaultLogger + func (l *DefaultLogger) Debug(msg string, args ...interface{}) + func (l *DefaultLogger) Error(msg string, args ...interface{}) + func (l *DefaultLogger) Info(msg string, args ...interface{}) + func (l *DefaultLogger) Warn(msg string, args ...interface{}) + type Middleware func(next RoundTripperFunc) RoundTripperFunc + func LoggingMiddleware(logger types.Logger) Middleware + type RoundTripperFunc func(*http.Request) (*http.Response, error) + func (f RoundTripperFunc) RoundTrip(req *http.Request) (*http.Response, error) + type TokenProvider interface + GetToken func() *types.Token + RefreshToken func(ctx context.Context) error Other modules containing this package github.com/PramithaMJ/salesforce/v2