redisworker

package
v2.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

View Source
const (
	REDIS_KEY_TTL        = 60
	REDIS_KEY_MAX_COUNT  = 15
	NOTIFICATION_TIMEOUT = 30
	MAX_TTL_FOR_SPAM     = 20
	MAX_EMAILS_FOR_SPAM  = 10
	INBOX_SETTINGS_TTL   = 14400 // 4 hours
)

Variables

This section is empty.

Functions

func GetCachedInboxSettings

func GetCachedInboxSettings(config *config.Config, mailboxID int) (storage.InboxSettings, error)

func IsNotSpamAttackCampaign

func IsNotSpamAttackCampaign(config *config.Config, mailboxID int) bool

func SendNotifications

func SendNotifications(config *config.Config, mailboxID, messageID int, subject string) (bool, error)

func StoreCachedInboxSettings

func StoreCachedInboxSettings(config *config.Config, mailboxID int, inboxSettings storage.InboxSettings)

Types

This section is empty.

Jump to

Keyboard shortcuts

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