Discover Packages
github.com/HackIllinois/api
services
notifications
models
package
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: Mar 30, 2019
License: NCSA
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type APNSAlert struct {
Title string `json:"title"`
Body string `json:"body"`
}
type APNSContainer struct {
Alert APNSAlert `json:"alert"`
Sound string `json:"sound"`
}
type DeviceList struct {
Devices []string `json:"devices"`
}
type DeviceRegistration struct {
Token string `json:"token"`
Platform string `json:"platform"`
}
type GCMNotification struct {
Title string `json:"title"`
Body string `json:"body"`
}
type GCMPayload struct {
Notification GCMNotification `json:"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 struct {
Notifications []Notification `json:"notifications"`
}
type NotificationOrder struct {
ID string `json:"id"`
Success int `json:"success"`
Failure int `json:"failure"`
Time int64 `json:"time"`
}
type NotificationPayload struct {
APNS string `json:"APNS"`
APNSSandbox string `json:"APNS_SANDBOX"`
GCM string `json:"GCM"`
Default string `json:"default"`
}
type Topic struct {
ID string `json:"id"`
UserIDs []string `json:"userIds"`
}
type TopicList struct {
Topics []string `json:"topics"`
}
type User struct {
ID string `json:"id"`
Devices []string `json:"devices"`
}
type UserList struct {
UserIDs []string `json:"userIds"`
}
type UserRoleList struct {
Roles []string `json:"roles"`
}
type UserRoles struct {
ID string `json:"id"`
Roles []string `json:"roles"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.