internal

package
v0.0.0-...-1e589be Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GeoTrustCert = "" /* 1234-byte string literal not displayed */
)

Functions

func NewHttpSocket

func NewHttpSocket(config *config.Config, db *database.Database, apns *Apns)

Types

type Apns

type Apns struct {
	DelayTime            uint
	Topic                string
	CheckDelayedInterval uint

	RenewTimer *time.Timer
	// contains filtered or unexported fields
}

func NewApns

func NewApns(cfg *config.Config, db *database.Database) (apns *Apns)

func (*Apns) SendNotification

func (apns *Apns) SendNotification(registration database.Registration, delayed bool)

type Notify

type Notify struct {
	Username string
	Mailbox  string
	Events   []string
}

NOTIFY dovecot-username="stefan" dovecot-mailbox="Inbox"

type Register

type Register struct {
	ApsAccountId   string
	ApsDeviceToken string
	ApsSubtopic    string
	Username       string
	Mailboxes      []string
}

Register struct to handle register requests via IMAP like:

 REGISTER aps-account-id="AAA" aps-device-token="BBB"
	aps-subtopic="com.apple.mobilemail"
	dovecot-username="stefan"
	dovecot-mailboxes=("Inbox","Notes")

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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