Documentation ¶
Index ¶
- Variables
- func GenerateArrayOfStrings(value string) []string
- func GetBatchRouterConfigInt64(key, destType string, defaultValue int64) int64
- func GetTransformedData(payload stdjson.RawMessage) string
- type AsyncDestinationManager
- type AsyncDestinationStruct
- type AsyncFailedPayload
- type AsyncJob
- type AsyncPoll
- type AsyncUploadOutput
- type AsyncUploadT
- type BatchedJobs
- type Connection
- type ErrorResponse
- type EventStatMeta
- type GetUploadStatsInput
- type GetUploadStatsResponse
- type ImportParameters
- type InvalidManager
- type MetaDataT
- type PollStatusResponse
- type UploadStruct
Constants ¶
This section is empty.
Variables ¶
View Source
var AsyncDestinations = []string{"MARKETO_BULK_UPLOAD", "BING_ADS"}
Functions ¶
func GenerateArrayOfStrings ¶
Generates array of strings for comma separated string Also removes "" elements from the array of strings if any.
func GetTransformedData ¶
func GetTransformedData(payload stdjson.RawMessage) string
Types ¶
type AsyncDestinationManager ¶
type AsyncDestinationManager interface { Upload(asyncDestStruct *AsyncDestinationStruct) AsyncUploadOutput Poll(pollInput AsyncPoll) PollStatusResponse GetUploadStats(UploadStatsInput GetUploadStatsInput) GetUploadStatsResponse }
type AsyncDestinationStruct ¶
type AsyncDestinationStruct struct { ImportingJobIDs []int64 FailedJobIDs []int64 Exists bool Size int CreatedAt time.Time FileName string Count int CanUpload bool UploadInProgress bool UploadMutex sync.RWMutex DestinationUploadURL string Destination *backendconfig.DestinationT Manager AsyncDestinationManager AttemptNums map[int64]int FirstAttemptedAts map[int64]time.Time OriginalJobParameters map[int64]stdjson.RawMessage }
type AsyncFailedPayload ¶
type AsyncUploadOutput ¶
type AsyncUploadT ¶
type BatchedJobs ¶
type BatchedJobs struct { Jobs []*jobsdb.JobT Connection *Connection TimeWindow time.Time }
type Connection ¶
type Connection struct { Source backendconfig.SourceT Destination backendconfig.DestinationT }
type ErrorResponse ¶
type ErrorResponse struct {
Error string
}
type EventStatMeta ¶
type GetUploadStatsInput ¶
type GetUploadStatsResponse ¶
type GetUploadStatsResponse struct { StatusCode int `json:"statusCode"` Metadata EventStatMeta `json:"metadata"` }
type ImportParameters ¶
type InvalidManager ¶
type InvalidManager struct{}
func (*InvalidManager) GetUploadStats ¶
func (f *InvalidManager) GetUploadStats(_ GetUploadStatsInput) GetUploadStatsResponse
func (*InvalidManager) Poll ¶
func (f *InvalidManager) Poll(_ AsyncPoll) PollStatusResponse
func (*InvalidManager) Upload ¶
func (f *InvalidManager) Upload(asyncDestStruct *AsyncDestinationStruct) AsyncUploadOutput
type PollStatusResponse ¶
type UploadStruct ¶
Click to show internal directories.
Click to hide internal directories.