Documentation
¶
Index ¶
- Constants
- func MergeRecipientAliases(recipientAlieses []Recipient) (merged []string)
- func NormalizeRecipient(recipient string) (normalized string)
- type AuthzConfig
- type BounceMail
- type Config
- type DatabaseConfig
- type Driver
- func (driver *Driver) BlacklistRecipients(senderdomain string, reasons []string, softbounce *bool, limit uint64, ...) (recipients []string, err error)
- func (driver *Driver) Close()
- func (driver *Driver) Listed(name string, value string, senderdomain string, useFilter bool) (listed bool, err error)
- func (driver *Driver) RecentlyListed(name string, value string, senderdomain string, useFilter bool) (listed []BounceMail, err error)
- type FilterConfig
- type Flags
- type Recipient
- type Server
- type ServerConfig
- type UserConfig
Constants ¶
View Source
const (
DefaultConfig = "sisito-api.toml"
)
Variables ¶
This section is empty.
Functions ¶
func MergeRecipientAliases ¶ added in v0.2.5
func NormalizeRecipient ¶ added in v0.2.5
Types ¶
type AuthzConfig ¶ added in v0.2.4
type BounceMail ¶
type BounceMail struct { Id int32 Timestamp time.Time Lhost string Rhost string Alias string Listid string Reason string Action string Subject string Messageid string Smtpagent string Softbounce uint8 Smtpcommand string Destination string Senderdomain string Feedbacktype string Diagnosticcode string Deliverystatus string Timezoneoffset string Addresser string Addresseralias string Recipient string Digest string CreatedAt time.Time `db:"created_at"` UpdatedAt time.Time `db:"updated_at"` Whitelisted uint8 }
type Config ¶
type Config struct { Server ServerConfig Database DatabaseConfig User []UserConfig Filter []FilterConfig Authz AuthzConfig }
func LoadConfig ¶
type DatabaseConfig ¶
type Driver ¶
type Driver struct { Config *Config DbMap *gorp.DbMap }
func (*Driver) BlacklistRecipients ¶ added in v0.1.6
func (*Driver) RecentlyListed ¶ added in v0.1.7
type FilterConfig ¶ added in v0.1.8
type ServerConfig ¶ added in v0.2.1
type UserConfig ¶ added in v0.1.6
Click to show internal directories.
Click to hide internal directories.