Versions in this module Expand all Collapse all v0 v0.1.0 Dec 5, 2026 Changes in this version + const APIKeyEnvironmentVariable + const DefaultBaseURL + const DefaultConcurrency + const DefaultRetryDelay + const DefaultTimeout + const MaxRetries + const MaxRetryDelay + const RetryBackoffFactor + const Version + func Bool(v bool) *bool + func Float(v float64) *float64 + func Int(v int64) *int64 + func String(v string) *string + type APIError struct + Code string + Message string + Response *Response + StatusCode int + func IsAPIError(err error) (*APIError, bool) + func (e *APIError) Error() string + type AddTargetParams struct + URL string + type BatchResult struct + Err error + Index int + Value T + func Batch[I, T any](ctx context.Context, items []I, concurrency int, ...) []BatchResult[T] + type Client struct + func NewClient(apiKey string, options *ClientOptions) (*Client, error) + func (c *Client) AddTarget(ctx context.Context, params *AddTargetParams, options ...RequestOption) (*Response, error) + func (c *Client) GetTarget(ctx context.Context, params *GetTargetParams, options ...RequestOption) (*Response, error) + func (c *Client) GetUsage(ctx context.Context, options ...RequestOption) (*Response, error) + func (c *Client) ListSignals(ctx context.Context, params *ListSignalsParams, options ...RequestOption) (*Response, error) + func (c *Client) ListTargetSignals(ctx context.Context, params *ListTargetSignalsParams, options ...RequestOption) (*Response, error) + func (c *Client) ListTargets(ctx context.Context, params *ListTargetsParams, options ...RequestOption) (*Response, error) + func (c *Client) MarkSignalsSeen(ctx context.Context, options ...RequestOption) (*Response, error) + func (c *Client) RemoveTarget(ctx context.Context, params *RemoveTargetParams, options ...RequestOption) (*Response, error) + func (c *Client) Request(ctx context.Context, method, path string, params map[string]any, ...) (*Response, error) + func (c *Client) UpdateTarget(ctx context.Context, params *UpdateTargetParams, options ...RequestOption) (*Response, error) + type ClientOptions struct + BaseURL string + HTTPClient *http.Client + Headers map[string]string + MaxRetries int + RetryDelay time.Duration + Timeout time.Duration + type ConfigurationError struct + Err error + Message string + func (e *ConfigurationError) Error() string + func (e *ConfigurationError) Unwrap() error + type GetTargetParams struct + ID string + type ListSignalsParams struct + Limit *int64 + Unread *int64 + type ListTargetSignalsParams struct + ID string + Limit *int64 + Unread *int64 + type ListTargetsParams struct + Kind *string + Limit *int64 + Page *int64 + URL *string + type RemoveTargetParams struct + ID string + type RequestOption func(*requestOptions) + func WithHeader(name, value string) RequestOption + func WithMaxRetries(n int) RequestOption + func WithMethod(method string) RequestOption + type Response struct + Body []byte + ContentType string + Header http.Header + IsJSON bool + StatusCode int + func (r *Response) Decode(v any) error + func (r *Response) Map() (map[string]any, error) + type ResponseDecodingError struct + Err error + Message string + Response *Response + func (e *ResponseDecodingError) Error() string + func (e *ResponseDecodingError) Unwrap() error + type SerializationError struct + Err error + Message string + Param string + func (e *SerializationError) Error() string + func (e *SerializationError) Unwrap() error + type TransportError struct + Err error + Message string + func (e *TransportError) Error() string + func (e *TransportError) Unwrap() error + type UpdateTargetParams struct + ID string + Muted *bool + Paused *bool + Seen *bool