Documentation
¶
Index ¶
- type Account
- type Database
- func (db *Database) AddRegistration(username, accountId, deviceToken string, mailboxes []string) (err error)
- func (db *Database) DeleteIfExistRegistration(reg Registration) bool
- func (db *Database) FindRegistrations(username, mailbox string) ([]Registration, error)
- func (db *Database) GetCerts() (certs *apple_xserver_certs.Certificates, success bool)
- func (db *Database) PutCerts(certs *apple_xserver_certs.Certificates)
- func (db *Database) UserExists(username string) bool
- type DbCerts
- type Registration
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
func (*Account) ContainsMailbox ¶
type Database ¶
type Database struct { Users map[string]User AppleCerts DbCerts // contains filtered or unexported fields }
func NewDatabase ¶
func (*Database) AddRegistration ¶
func (*Database) DeleteIfExistRegistration ¶
func (db *Database) DeleteIfExistRegistration(reg Registration) bool
func (*Database) FindRegistrations ¶
func (db *Database) FindRegistrations(username, mailbox string) ([]Registration, error)
func (*Database) GetCerts ¶
func (db *Database) GetCerts() (certs *apple_xserver_certs.Certificates, success bool)
func (*Database) PutCerts ¶
func (db *Database) PutCerts(certs *apple_xserver_certs.Certificates)
func (*Database) UserExists ¶
type DbCerts ¶
type DbCerts struct { Signature []tls.Certificate Keys [][]byte }
type Registration ¶
Click to show internal directories.
Click to hide internal directories.