models

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 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 APNSContainer added in v0.3.0

type APNSContainer struct {
	Alert APNSAlert `json:"alert"`
	Sound string    `json:"sound"`
}

type APNSPayload

type APNSPayload struct {
	Container APNSContainer `json:"aps"`
	Data      Notification  `json:"data"`
}

type DeviceList added in v0.4.0

type DeviceList struct {
	Devices []string `json:"devices"`
}

type DeviceRegistration

type DeviceRegistration struct {
	Token    string `json:"token"`
	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 {
	ID    string `json:"id"`
	Topic string `json:"topic"`
	Title string `json:"title"`
	Body  string `json:"body"`
	Time  int64  `json:"time"`
}

type NotificationList

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

type NotificationOrder added in v0.4.0

type NotificationOrder struct {
	ID      string `json:"id"`
	Success int    `json:"success"`
	Failure int    `json:"failure"`
	Time    int64  `json:"time"`
}

type NotificationPayload

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

type Topic

type Topic struct {
	ID      string   `json:"id"`
	UserIDs []string `json:"userIds"`
}

type TopicList

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

type User added in v0.4.0

type User struct {
	ID      string   `json:"id"`
	Devices []string `json:"devices"`
}

type UserList added in v0.4.0

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

type UserRoleList added in v0.4.0

type UserRoleList struct {
	Roles []string `json:"roles"`
}

type UserRoles added in v0.3.0

type UserRoles struct {
	ID    string   `json:"id"`
	Roles []string `json:"roles"`
}

Jump to

Keyboard shortcuts

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