tasks

package
v0.12.6 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

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
}

Jump to

Keyboard shortcuts

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