models

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: NCSA Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APNSAlert

type APNSAlert struct {
	Title string `json:"title"`
	Body  string `json:"body"`
}

type APNSPayload

type APNSPayload struct {
	Alert APNSAlert `json:"alert"`
}

type Device

type Device struct {
	UserID        string            `json:"userId"`
	DeviceToken   string            `json:"deviceToken"`
	DeviceArn     string            `json:"deviceArn"`
	Platform      string            `json:"platform"`
	Subscriptions map[string]string `json:"subscriptions"`
}

type DeviceRegistration

type DeviceRegistration struct {
	DeviceToken string `json:"deviceToken"`
	Platform    string `json:"platform"`
}

type GCMNotification

type GCMNotification struct {
	Title string `json:"title"`
	Body  string `json:"body"`
}

type GCMPayload

type GCMPayload struct {
	Notification GCMNotification `json:"notification"`
}

type Notification

type Notification struct {
	Body  string `json:"body"`
	Title string `json:"title"`
}

type NotificationList

type NotificationList struct {
	Notifications []PastNotification `json:"notifications"`
}

type NotificationPayload

type NotificationPayload struct {
	APNS    string `json:"APNS"`
	GCM     string `json:"GCM"`
	Default string `json:"default"`
}

type PastNotification

type PastNotification struct {
	TopicName string `json:"topicName"`
	Body      string `json:"body"`
	Title     string `json:"title"`
	Time      int64  `json:"time"`
}

type Topic

type Topic struct {
	Name    string   `json:"name"`
	Arn     string   `json:"arn"`
	UserIDs []string `json:"userIds"`
}

type TopicList

type TopicList struct {
	Topics []string `json:"topics"`
}

type TopicName

type TopicName struct {
	Name string `json:"name"`
}

type TopicPublic

type TopicPublic struct {
	Name    string   `json:"name"`
	UserIDs []string `json:"userIds"`
}

type UserIDList

type UserIDList struct {
	UserIDs []string `json:"userIds"`
}

Jump to

Keyboard shortcuts

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