Documentation ¶
Index ¶
Constants ¶
View Source
const AuthTypeBasic = "basic"
View Source
const AuthTypeBearer = "bearer"
View Source
const AuthTypeSalesforceOauth = "SalesforceOauth"
View Source
const DefaultBatchDelaySeconds = 3
View Source
const DefaultBatchSize = 10
Variables ¶
This section is empty.
Functions ¶
func NewRestAPIDestination ¶
func NewRestAPIDestination(destinationConfig psync.DestinationConfig) (psync.Destination, error)
NewRestAPIDestination unmarshals the destinationConfig's ExtraJson into a RestApi struct
func NewRestAPISource ¶
func NewRestAPISource(sourceConfig psync.SourceConfig) (psync.Source, error)
NewRestAPISource unmarshals the sourceConfig's ExtraJson into a RestApi struct
Types ¶
type RestAPI ¶
type RestAPI struct { Method string // DEPRECATED ListMethod string CreateMethod string BaseURL string ResultsJSONContainer string AuthType string Username string Password string ClientID string ClientSecret string CompareAttribute string UserAgent string BatchSize int BatchDelaySeconds int // contains filtered or unexported fields }
func (*RestAPI) ApplyChangeSet ¶
func (r *RestAPI) ApplyChangeSet(changes psync.ChangeSet, eventLog chan<- psync.EventLogItem) psync.ChangeResults
type SalesforceAuthResponse ¶
Click to show internal directories.
Click to hide internal directories.