iterable

package
v0.0.0-...-3219f90 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2025 License: MIT Imports: 17 Imported by: 0

README

Description

This is an exhaustive list of API endpoints which are excluded from Write/Delete connector implementation and therefore are available only via proxy.

Excluded Endpoints

Authentication

Campaigns

Commerce

Emails

Message Events

Events

In-App Notifications

Lists

Push Notifications

SMS

Subscription

Templates

Users

Verifications

Web Push Notification

Workflow

Endpoints that are performing alike operations are excluded as well. In other words they are covered by related endpoint. Excluded similiar endpoints are as follows:

Documentation

Index

Constants

View Source
const DefaultPageSize = 50

DefaultPageSize is number of elements per page.

Variables

View Source
var ErrCatalogCreate = errors.New("payload must have string 'name' to create a catalog")

Functions

This section is empty.

Types

type Connector

type Connector struct {
	BaseURL string
	Client  *common.JSONHTTPClient
	Module  common.Module
}

func NewConnector

func NewConnector(opts ...Option) (conn *Connector, outErr error)

func (*Connector) Delete

func (c *Connector) Delete(ctx context.Context, config common.DeleteParams) (*common.DeleteResult, error)

func (*Connector) HTTPClient

func (c *Connector) HTTPClient() *common.HTTPClient

func (*Connector) JSONHTTPClient

func (c *Connector) JSONHTTPClient() *common.JSONHTTPClient

JSONHTTPClient returns the underlying JSON HTTP client.

func (*Connector) ListObjectMetadata

func (c *Connector) ListObjectMetadata(
	ctx context.Context, objectNames []string,
) (*common.ListObjectMetadataResult, error)

func (*Connector) Provider

func (c *Connector) Provider() providers.Provider

func (*Connector) Read

func (c *Connector) Read(ctx context.Context, config common.ReadParams) (*common.ReadResult, error)

func (*Connector) String

func (c *Connector) String() string

func (*Connector) Write

func (c *Connector) Write(
	ctx context.Context, config common.WriteParams,
) (*common.WriteResult, error)

type Option

type Option = func(params *parameters)

Option is a function which mutates the connector configuration.

func WithAuthenticatedClient

func WithAuthenticatedClient(client common.AuthenticatedHTTPClient) Option

func WithClient

func WithClient(ctx context.Context, client *http.Client,
	apiKey string, opts ...common.HeaderAuthClientOption,
) Option

type ResponseError

type ResponseError struct {
	Message string `json:"msg"`
	Code    string `json:"code"`
	Params  any    `json:"params"`
}

func (ResponseError) CombineErr

func (r ResponseError) CombineErr(base error) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL