Documentation
¶
Index ¶
- Constants
- Variables
- func NewStdLogger() (log.Logger, func() error, error)
- type Config
- type CouchDBConfig
- type DiskUsageHandlers
- type EmailStatistics
- type MailDomains
- type MailioConfig
- type MailioServerSubdomainQuery
- type PrometheusConfig
- type Queue
- type RedisConfig
- type ServerHandshakeConfig
- type ServerHandshakeSubtypeConfig
- type SmtpServerConfig
- type StorageConfig
Constants ¶
View Source
const REDIS_DID_CACHE_PREFIX = "cached_did:"
View Source
const REDIS_DID_CACHE_TTL = time.Hour * 24 * 7 // 1 week
Variables ¶
View Source
var Logger log.Logger
global Log
View Source
var MailioDID *mailiodid.DID
var MailioDID *mailiodid.DID
View Source
var MailioKeysCreated int64
View Source
var PrivateKey ed25519.PrivateKey
View Source
var PublicKey ed25519.PublicKey
Public and Private key of a server (loaded from serverKeysPath in conf.yaml)
View Source
var RateLimiter *redis_rate.Limiter
Global rate limiter
Functions ¶
Types ¶
type Config ¶
type Config struct {
cfg.YamlConfig `yaml:",inline"`
CouchDB CouchDBConfig `yaml:"couchdb"`
Mailio MailioConfig `yaml:"mailio"`
Prometheus PrometheusConfig `yaml:"prometheus"`
Redis RedisConfig `yaml:"redis"`
Queue Queue `yaml:"queue"`
SmtpServers []*SmtpServerConfig `yaml:"smtpservers"`
DiskUsageHandlers []*DiskUsageHandlers `yaml:"diskusagehandlers"`
Storage StorageConfig `yaml:"storage"`
EmailStatistics EmailStatistics `yaml:"emailstatistics"`
}
var Conf Config
Conf global config
type CouchDBConfig ¶
type DiskUsageHandlers ¶
type EmailStatistics ¶
type EmailStatistics struct {
SentKeyExpiry int `yaml:"sentKeyExpiry"` // in minutes
SentKeyFlush int `yaml:"sentKeyFlush"` // in minutes
InterestKeyExpiry int `yaml:"interestKeyExpiry"` // in minutes
InterestKeyFlush int `yaml:"interestKeyFlush"` // in minutes
SentRecvBySenderExpiry int `yaml:"sentRecvBySenderExpiry"` // in minutes
SentRecvBySenderFlush int `yaml:"sentRecvBySenderFlush"` // in minutes
}
type MailDomains ¶
type MailioConfig ¶
type MailioConfig struct {
DailySmtpSentLimit int `yaml:"dailySmtpSentLimit"`
DiskSpace int64 `yaml:"diskSpace"`
AuthenticationPath string `yaml:"authenticationPath"`
MessagingPath string `yaml:"messagingPath"`
EmailDomain string `yaml:"emailDomain"`
ServerDomain string `yaml:"serverDomain"`
WebDomain string `yaml:"webDomain"`
ServerSubdomainQueryList []*MailioServerSubdomainQuery `yaml:"serverSubdomainQueryList"`
ServerKeysPath string `yaml:"serverKeysPath"`
ServerHanshake ServerHandshakeConfig `yaml:"serverHandshake"`
ReadVsReceived int `yaml:"readVsReceived"`
}
type MailioServerSubdomainQuery ¶
type MailioServerSubdomainQuery struct {
Prefix string `yaml:"prefix"`
}
type PrometheusConfig ¶
type RedisConfig ¶
type ServerHandshakeConfig ¶
type ServerHandshakeConfig struct {
ID string `yaml:"id"`
OriginServer string `yaml:"originServer"`
Type int `yaml:"type"`
MinimumLevel int `yaml:"minimumLevel"`
Subtypes []ServerHandshakeSubtypeConfig `yaml:"subtypes"`
}
type SmtpServerConfig ¶
type SmtpServerConfig struct {
Provider string `yaml:"provider"`
Webhookurl string `yaml:"webhookurl"`
Webhookkey string `yaml:"webhookkey"`
Domains []*MailDomains `yaml:"domains"`
}
Click to show internal directories.
Click to hide internal directories.