domain

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PlatformIOS     = Platform(pushapi.Platform_IOS)
	PlatformAndroid = Platform(pushapi.Platform_Android)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Id      string  `bson:"_id"`
	Topics  []Topic `bson:"topics"`
	Updated int64   `bson:"updated"`
	Created int64   `bson:"created"`
}

type Message

type Message struct {
	Tokens   []string
	Data     map[string]string
	Platform Platform
}

type Platform

type Platform uint8

type Token

type Token struct {
	Id        string      `bson:"_id"`
	AccountId string      `bson:"accountId"`
	PeerId    string      `bson:"peerId"`
	Platform  Platform    `bson:"platform"`
	Status    TokenStatus `bson:"status"`
	Created   int64       `bson:"created"`
	Updated   int64       `bson:"updated"`
}

type TokenStatus

type TokenStatus uint8
const (
	TokenStatusValid TokenStatus = iota
	TokenStatusInvalid
)

type Topic

type Topic string

Jump to

Keyboard shortcuts

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