Documentation
¶
Index ¶
- type Adapter
- func (a Adapter) BatchWrite(ctx context.Context, params *common.BatchWriteParam) (*common.BatchWriteResult, error)
- func (a Adapter) Search(ctx context.Context, params *common.SearchParams) (*common.SearchResult, error)
- func (a Adapter) UpsertMetadata(ctx context.Context, params *common.UpsertMetadataParams) (*common.UpsertMetadataResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// Basic connector
*components.Connector
// Require authenticated client
common.RequireAuthenticatedClient
// Supported operations
components.Deleter
// contains filtered or unexported fields
}
Adapter handles CRUD operations (at the moment: delete only) against Salesforce's REST API. It abstracts API endpoint construction, versioning, and JSON response processing specific to the Salesforce CRUD feature.
func NewAdapter ¶
func NewAdapter(params *common.ConnectorParams) (*Adapter, error)
NewAdapter creates a new crm Adapter configured to work with Salesforce's APIs.
func (Adapter) BatchWrite ¶
func (a Adapter) BatchWrite(ctx context.Context, params *common.BatchWriteParam) (*common.BatchWriteResult, error)
func (Adapter) Search ¶
func (a Adapter) Search(ctx context.Context, params *common.SearchParams) (*common.SearchResult, error)
func (Adapter) UpsertMetadata ¶
func (a Adapter) UpsertMetadata( ctx context.Context, params *common.UpsertMetadataParams, ) (*common.UpsertMetadataResult, error)
Click to show internal directories.
Click to hide internal directories.