Versions in this module Expand all Collapse all v0 v0.2.0 May 29, 2025 Changes in this version + type Client struct + func New() *Client + func (c *Client) DELETE(ctx context.Context, path string) (*client.Response, error) + func (c *Client) Do(req *http.Request) (*http.Response, error) + func (c *Client) GET(ctx context.Context, path string) (*client.Response, error) + func (c *Client) GetMiddlewares() []middleware.Middleware + func (c *Client) HEAD(ctx context.Context, path string) (*client.Response, error) + func (c *Client) NewRequest(method, path string) *client.Request + func (c *Client) OPTIONS(ctx context.Context, path string) (*client.Response, error) + func (c *Client) PATCH(ctx context.Context, path string, body interface{}) (*client.Response, error) + func (c *Client) POST(ctx context.Context, path string, body interface{}) (*client.Response, error) + func (c *Client) PUT(ctx context.Context, path string, body interface{}) (*client.Response, error) + func (c *Client) WithBaseURL(baseURL string) *Client + func (c *Client) WithConnectionPool(maxIdleConns, maxConnsPerHost, maxIdleConnsPerHost int, ...) *Client + func (c *Client) WithHeader(key, value string) *Client + func (c *Client) WithHeaders(headers map[string]string) *Client + func (c *Client) WithMiddleware(m middleware.Middleware) *Client + func (c *Client) WithMiddlewares(middlewares ...middleware.Middleware) func(*Client) + func (c *Client) WithTimeout(timeout time.Duration) *Client + type MiddlewareFunc = middleware.MiddlewareFunc + type Request = client.Request + type Response = client.Response + type SSEEventFullHandlerFunc = client.EventFullHandlerFunc + type SSEEventHandlerFunc = client.EventHandlerFunc + type SSEEventSourceFullHandler = client.EventSourceFullHandler + type SSEEventSourceHandler = client.EventSourceHandler v0.1.0 May 25, 2025 Changes in this version + func GetSSE(c *client.Client, ctx context.Context, path string, handler EventSourceHandler) error + func GetStream(c *client.Client, ctx context.Context, path string, handler func([]byte) error, ...) error + func GetStreamInto[T any](c *client.Client, ctx context.Context, path string, handler func(T) error, ...) error + func GetStreamJSON(c *client.Client, ctx context.Context, path string, ...) error + func GetStreamLines(c *client.Client, ctx context.Context, path string, handler func([]byte) error, ...) error + func NewClient() *client.Client + type CircuitBreakerConfig = circuitbreaker.Config + type EventSourceHandler = stream.EventSourceHandler + type Handler = middleware.Handler + type LoggerConfig = logger.Config + type Middleware = middleware.Middleware + func NewCircuitBreakerMiddleware(config *CircuitBreakerConfig) Middleware + func NewLoggerMiddleware(config *LoggerConfig) Middleware + func NewOAuthMiddleware(config *OAuthConfig) Middleware + func NewRetryMiddleware(config *RetryConfig) Middleware + type OAuthConfig = oauth.Config + type RetryConfig = retry.Config + type SSEEvent = stream.SSEEvent + type StreamOption = stream.StreamOption + func WithBufferSize(size int) StreamOption + func WithByteDelimiter(delimiter byte) StreamOption + func WithContentType(contentType string) StreamOption + func WithDelimiter(delimiter string) StreamOption