Documentation ¶
Index ¶
Constants ¶
View Source
const ( AuthTypeBasic = "basic" AuthTypeBearer = "bearer" AuthTypeSalesforceOauth = "SalesforceOauth" DefaultBatchSize = 10 DefaultBatchDelaySeconds = 3 PaginationSchemeItems = "items" PaginationSchemePages = "pages" )
View Source
const DefaultHttpTimeoutSeconds = 45
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 ¶
type Pagination struct { // If specified, must be "pages" for a page based request or "items" for an item based request. // If not specified, no pagination is attempted. Scheme string FirstIndex int // index of first item/page to fetch, default is 1 NumberKey string // query string key for the item index or page number, default is "page" PageLimit int // index of last page to request, default is 1000 PageSize int // page size, default is 100 items per page PageSizeKey string // query string key the number of items per page }
type RestAPI ¶
type RestAPI struct { 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 Filters internal.Filters HttpTimeoutSeconds int // 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 ¶
Click to show internal directories.
Click to hide internal directories.