task

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPTask

type HTTPTask struct {
	ProjectID  string
	LocationID string
	QueueID    string
	URL        string
}

func (*HTTPTask) PushNotification

func (t *HTTPTask) PushNotification(r NotificationRequest) (*taskspb.Task, error)

type HTTPTaskInterface

type HTTPTaskInterface interface {
	PushNotification(r NotificationRequest) (*taskspb.Task, error)
}

func NewNotificationTask

func NewNotificationTask() HTTPTaskInterface

type NotificationRequest

type NotificationRequest struct {
	Token     []string `json:"token"`
	Title     string   `json:"title"`
	Body      string   `json:"body"`
	URLScheme string   `json:"urlScheme"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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