model

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDestTypeNotFound   = errors.New("destination type not found for the destination ID")
	ErrDestDetail         = errors.New("error while getting destination details")
	ErrNoRunnableJob      = errors.New("no runnable job found")
	ErrDestNotImplemented = errors.New("job deletion not implemented for the destination")
	ErrInvalidDestination = errors.New("invalid destination")
)

Functions

This section is empty.

Types

type APIReqErr

type APIReqErr struct {
	StatusCode int
	Body       string
	Err        error
}

type Destination

type Destination struct {
	Config        map[string]interface{}
	DestinationID string
	Name          string
}

type Job

type Job struct {
	ID             int
	WorkspaceID    string
	DestinationID  string
	Status         JobStatus
	UserAttributes []UserAttribute
	UpdatedAt      time.Time
}

type JobStatus

type JobStatus string
const (
	JobStatusUndefined    JobStatus = ""
	JobStatusPending      JobStatus = "pending"
	JobStatusRunning      JobStatus = "running"
	JobStatusComplete     JobStatus = "complete"
	JobStatusFailed       JobStatus = "failed"
	JobStatusNotSupported JobStatus = "unsupported"
	JobStatusAborted      JobStatus = "aborted"
)

type UserAttribute

type UserAttribute struct {
	UserID string
	Phone  *string
	Email  *string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL