Documentation ¶
Index ¶
- type Connector
- func (c *Connector) HTTPClient() *common.HTTPClient
- func (c *Connector) JSONHTTPClient() *common.JSONHTTPClient
- func (c *Connector) ListObjectMetadata(ctx context.Context, objectNames []string) (*common.ListObjectMetadataResult, error)
- func (c *Connector) Provider() providers.Provider
- func (c *Connector) Read(ctx context.Context, config common.ReadParams) (*common.ReadResult, error)
- func (c *Connector) Search(ctx context.Context, config common.ReadParams, url *urlbuilder.URL) (*common.ReadResult, error)
- func (c *Connector) String() string
- func (c *Connector) Write(ctx context.Context, config common.WriteParams) (*common.WriteResult, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct { BaseURL string Client *common.JSONHTTPClient }
func NewConnector ¶
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)
ListObjectMetadata creates metadata of object via reading objects using Apollo API.
func (*Connector) Read ¶
func (c *Connector) Read(ctx context.Context, config common.ReadParams) (*common.ReadResult, error)
Read retrieves data based on the provided configuration parameters.
This function executes a read operation using the given context and provided read parameters.
func (*Connector) Search ¶
func (c *Connector) Search(ctx context.Context, config common.ReadParams, url *urlbuilder.URL, ) (*common.ReadResult, error)
search uses POST method to read data.It has a display limit of 50,000 records. It's recommended to filter the results so as to narrow down the results as much as possible. Most of the Filtering would need client's input so we don't exhaust calls by paging through all 50k records. Using this as is may lead to that issue.
func (*Connector) Write ¶
func (c *Connector) Write(ctx context.Context, config common.WriteParams) (*common.WriteResult, error)
Write creates/updates records in apolllo.
type Option ¶
type Option = func(params *parameters)
func WithAuthenticatedClient ¶
func WithAuthenticatedClient(client common.AuthenticatedHTTPClient) Option