Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Do ¶
func Do(conf *Configuration) error
Types ¶
type Configuration ¶
type Configuration struct { // Database configuration DBConnStr string `json:"db_str" mapstructure:"db_str"` // Configuration for deleting expired accounts ExpiryDelay int `json:"expiry_delay" mapstructure:"expiry_delay"` DeleteDelay int `json:"delete_delay" mapstructure:"delete_delay"` // Email sending configuration keyshare.EmailConfiguration `mapstructure:",squash"` DeleteExpiredAccountFiles map[string]string `json:"delete_expired_account_files" mapstructure:"delete_expired_account_files"` DeleteExpiredAccountSubjects map[string]string `json:"delete_expired_account_subjects" mapstructure:"delete_expired_account_subjects"` // Logging verbosity level: 0 is normal, 1 includes DEBUG level, 2 includes TRACE level Verbose int `json:"verbose" mapstructure:"verbose"` // Don't log anything at all Quiet bool `json:"quiet" mapstructure:"quiet"` // Output structured log in JSON format LogJSON bool `json:"log_json" mapstructure:"log_json"` // Custom logger instance. If specified, Verbose, Quiet and LogJSON are ignored. Logger *logrus.Logger `json:"-"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.