pushpad

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(authToken string, projectID string)

func SignatureFor

func SignatureFor(uid string) string

Types

type Notification

type Notification struct {
	ProjectID          string     `json:"-"`
	Body               string     `json:"body"`
	Title              string     `json:"title,omitempty"`
	TargetURL          string     `json:"target_url,omitempty"`
	IconURL            string     `json:"icon_url,omitempty"`
	BadgeURL           string     `json:"badge_url,omitempty"`
	ImageURL           string     `json:"image_url,omitempty"`
	TTL                int        `json:"ttl,omitempty"`
	RequireInteraction bool       `json:"require_interaction,omitempty"`
	Silent             bool       `json:"silent,omitempty"`
	Urgent             bool       `json:"urgent,omitempty"`
	CustomData         string     `json:"custom_data,omitempty"`
	CustomMetrics      []string   `json:"custom_metrics,omitempty"`
	Starred            bool       `json:"starred,omitempty"`
	SendAt             *time.Time `json:"send_at,omitempty"`
	UIDs               []string   `json:"uids"`
	Tags               []string   `json:"tags"`
}

func (Notification) Send

type NotificationResponse

type NotificationResponse struct {
	ID        int       `json:"id"`
	Scheduled int       `json:"scheduled"`
	UIDs      []string  `json:"uids"`
	SendAt    time.Time `json:"send_at"`
}

Jump to

Keyboard shortcuts

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