mirror of
https://github.com/pcvolkmer/idicon.git
synced 2025-04-19 16:46:50 +00:00
25 lines
722 B
Go
25 lines
722 B
Go
package main
|
|
|
|
// Config holds the configuration for Idicon service.
|
|
type Config struct {
|
|
Defaults Defaults `toml:"defaults"`
|
|
Users []UserConfig `toml:"users"`
|
|
}
|
|
|
|
// Defaults holds default configuration values to be used as defaults for all users.
|
|
type Defaults struct {
|
|
ColorScheme string `toml:"color-scheme"`
|
|
Pattern string `toml:"pattern"`
|
|
}
|
|
|
|
// UserConfig holds user specific configuration.
|
|
// ID is the id od the user in plain text,
|
|
// Alias is the alias to be used to generate the id icon.
|
|
type UserConfig struct {
|
|
ID string `toml:"id"`
|
|
Alias string `toml:"alias"`
|
|
ColorScheme string `toml:"color-scheme"`
|
|
Pattern string `toml:"pattern"`
|
|
Redirect string `toml:"redirect"`
|
|
}
|