Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Payload ¶
type Payload struct { Url string `json:"url"` // the youtube url to use for download Artist string `json:"artist"` // the artist Album string `json:"album"` // the album Track string `json:"track"` // the music track }
Payload contains the needed fields to perform the download.
type TaskClient ¶
type TaskClient interface { // CreateTask creates a new task from the given payload. // It returns the created task. CreateTask(tPayload Task) (*taskspb.Task, error) // Close closes the client Close() error }
TaskClient is responsible for creating tasks in Cloud Task.
func NewTaskClient ¶
func NewTaskClient(opt TaskClientOptions) (TaskClient, error)
NewTaskClient is the builder for the TaskClient
type TaskClientOptions ¶
type TaskClientOptions struct { // QueuePath locates where to push new tasks. QueuePath string // Target is the host that needs to be called by the task. Target string // Provider for the client Provider Provider }
TaskClientOptions are the options for the TaskClient builder.
Click to show internal directories.
Click to hide internal directories.