Documentation ¶
Index ¶
Constants ¶
View Source
const ( AuthTypeBasic = "basic" AuthTypeBearer = "bearer" AuthTypeSalesforceOauth = "SalesforceOauth" DefaultBatchSize = 10 DefaultBatchDelaySeconds = 3 )
Variables ¶
This section is empty.
Functions ¶
func NewRestAPIDestination ¶
func NewRestAPIDestination(destinationConfig internal.DestinationConfig) (internal.Destination, error)
NewRestAPIDestination unmarshals the destinationConfig's ExtraJson into a RestApi struct
func NewRestAPISource ¶
func NewRestAPISource(sourceConfig internal.SourceConfig) (internal.Source, error)
NewRestAPISource unmarshals the sourceConfig's ExtraJson into a RestApi struct
Types ¶
type Pagination ¶ added in v5.5.0
type Pagination struct { Scheme string // if specified, must be 'query' PageNumberKey string // query string key for the page number PageSizeKey string // number of items per page, default is 100 FirstPage int // number of the first page, default is 1 PageLimit int // maximum number of pages to request, default is 1000 PageSize int // page size, default is 100 }
type RestAPI ¶
type RestAPI struct { Method string // DEPRECATED ListMethod string CreateMethod string UpdateMethod string DeleteMethod string IDAttribute string BaseURL string ResultsJSONContainer string AuthType string Username string Password string ClientID string ClientSecret string CompareAttribute string UserAgent string BatchSize int BatchDelaySeconds int Pagination Pagination // contains filtered or unexported fields }
func (*RestAPI) ApplyChangeSet ¶
func (r *RestAPI) ApplyChangeSet(changes internal.ChangeSet, eventLog chan<- internal.EventLogItem) internal.ChangeResults
type SalesforceAuthResponse ¶
type SalesforceErrorResponse ¶ added in v5.5.0
Click to show internal directories.
Click to hide internal directories.