Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MinWorkerConcurrency is the minimum number of concurrent jobs the worker // should process MinWorkerConcurrency = 1 // MaxWorkerConcurrency is the maximum number of concurrent jobs the worker // should process MaxWorkerConcurrency = 10 // MinWorkerMaxRetries is minimum number that can be set for the worker's // maximum-retries MinWorkerMaxRetries = 0 )
View Source
const (
// MinRequestTTL in the minimum TTL that we should allow to be set on requests
MinRequestTTL = 300
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the application client
func (*Client) StartServer ¶
func (clt *Client) StartServer()
StartServer starts the application web server
func (*Client) StartWorker ¶
func (c *Client) StartWorker()
StartWorker starts the application background worker
type ConversionJob ¶
type ConversionJob struct { Identifier string `redis:"uuid"` CreatedAt string `redis:"created_at"` StartedAt string `redis:"started_at"` EndedAt string `redis:"ended_at"` ExpiresIn int `redis:"expires_in"` Status string `redis:"status"` Logs []byte `redis:"logs"` StorageBucket string `redis:"storage_bucket"` StorageKey string `redis:"storage_key"` RequestType string `redis:"request_type"` RequestData []byte `redis:"request_data"` }
ConversionJob is a mapping of a conversion job's attributes
Click to show internal directories.
Click to hide internal directories.