Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Activity ¶
type Activity struct {
// contains filtered or unexported fields
}
Activity is a stub for your Activity implementation
type Input ¶
type Input struct {
Data interface{} `md:"data,required"` // The JSON Object that will serve as the input data
}
Input structure
type Output ¶
type Output struct { InsertedID string `md:"insertedId"` // InsertedId of inserted document. In case of Insert Many Documents, a list of IDs is returned TotalCount int `md:"totalCount"` // Applicable for Insert Many Documents only. The total numner of Documents that were attempted to be inserted. SuccessCount int `md:"successCount"` // Applicable for Insert Many Documents only. The total number of successful Document Insertions. FailureCount int `md:"failureCount"` // Applicable for Insert Many Documents only. The total number of Document insertions that failed. }
Output structure
type Settings ¶
type Settings struct { Connection string `md:"connection,required"` // The MongoDB connection Operation string `md:"operation,required,allowed(Insert One Document,Insert Many Documents)"` // Operation to perform CollectionName string `md:"collectionName,required"` // The collection within the MongoDB database to Insert Documents Database string `md:"databaseName,required"` // MongoDB database to Insert Documents Timeout int32 `md:"timeout"` // Timeout in seconds for the activity's operations ContinueOnErr bool `md:"continueOnErr"` // In case of Insert Many Documents operation, should the activity continue to insertDocument when the previous insertDocument operation failed? }
Settings structure
Click to show internal directories.
Click to hide internal directories.