Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { // IRMA server configuration. If not given, this will be populated using information here *server.Configuration `mapstructure:",squash"` CORSAllowedOrigins []string `json:"cors_allowed_origins" mapstructure:"cors_allowed_origins"` // Path to static content to serve (for testing) StaticPath string `json:"static_path" mapstructure:"static_path"` StaticPrefix string `json:"static_prefix" mapstructure:"static_prefix"` // Database configuration (ignored when database is provided) DBType DBType `json:"db_type" mapstructure:"db_type"` DBConnStr string `json:"db_str" mapstructure:"db_str"` DBConnMaxIdle int `json:"db_max_idle" mapstructure:"db_max_idle"` DBMConnMaxOpen int `json:"db_max_open" mapstructure:"db_max_open"` DBConnMaxIdleTime int `json:"db_max_idle_time" mapstructure:"db_max_idle_time"` DBConnMaxOpenTime int `json:"db_max_open_time" mapstructure:"db_max_open_time"` // DeleteDelay is the delay in days before a user or email address deletion becomes effective. DeleteDelay int `json:"delete_delay" mapstructure:"delete_delay"` // Provide a prepared database (useful for testing) DB db `json:"-"` // Session lifetime in seconds SessionLifetime int `json:"session_lifetime" mapstructure:"session_lifetime"` // Keyshare attributes to use for login EmailAttributes []irma.AttributeTypeIdentifier `json:"email_attributes" mapstructure:"email_attributes"` // Configuration for email sending during login (email address use will be disabled if not present) keyshare.EmailConfiguration `mapstructure:",squash"` LoginURL map[string]string `json:"login_url" mapstructure:"login_url"` LoginEmailFiles map[string]string `json:"login_email_files" mapstructure:"login_email_files"` LoginEmailSubjects map[string]string `json:"login_email_subjects" mapstructure:"login_email_subjects"` DeleteEmailFiles map[string]string `json:"delete_email_files" mapstructure:"delete_email_files"` DeleteEmailSubjects map[string]string `json:"delete_email_subjects" mapstructure:"delete_email_subjects"` DeleteAccountFiles map[string]string `json:"delete_account_files" mapstructure:"delete_account_files"` DeleteAccountSubjects map[string]string `json:"delete_account_subjects" mapstructure:"delete_account_subjects"` // contains filtered or unexported fields }
Configuration contains configuration for the irmaserver library and irmad.
Click to show internal directories.
Click to hide internal directories.