cardav working (tm)
This commit is contained in:
@@ -18,13 +18,20 @@ type Access struct {
|
||||
}
|
||||
|
||||
type Calendar struct {
|
||||
ID string `yaml:"id"`
|
||||
Owner string `yaml:"owner"`
|
||||
Color string `yaml:"color,omitempty"`
|
||||
Access []Access `yaml:"access,omitempty"`
|
||||
ID string `yaml:"id"`
|
||||
Owner string `yaml:"owner"`
|
||||
Color string `yaml:"color,omitempty"`
|
||||
Access []Access `yaml:"access,omitempty"`
|
||||
}
|
||||
|
||||
type AddressBook struct {
|
||||
ID string `yaml:"id"`
|
||||
Owner string `yaml:"owner"`
|
||||
Access []Access `yaml:"access,omitempty"`
|
||||
}
|
||||
|
||||
type Aggregate struct {
|
||||
|
||||
ID string `yaml:"id"`
|
||||
Owner string `yaml:"owner"`
|
||||
Color string `yaml:"color,omitempty"`
|
||||
@@ -67,14 +74,14 @@ type SMTPConfig struct {
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
Server ServerConfig `yaml:"server"`
|
||||
Database DatabaseConfig `yaml:"database"`
|
||||
SMTP SMTPConfig `yaml:"smtp"`
|
||||
Users []User `yaml:"users"`
|
||||
Calendars []Calendar `yaml:"calendars"`
|
||||
Aggregates []Aggregate `yaml:"aggregates"`
|
||||
Server ServerConfig `yaml:"server"`
|
||||
Database DatabaseConfig `yaml:"database"`
|
||||
SMTP SMTPConfig `yaml:"smtp"`
|
||||
Users []User `yaml:"users"`
|
||||
Calendars []Calendar `yaml:"calendars"`
|
||||
AddressBooks []AddressBook `yaml:"address_books"`
|
||||
Aggregates []Aggregate `yaml:"aggregates"`
|
||||
}
|
||||
|
||||
func Load(path string) (*Config, error) {
|
||||
f, err := os.Open(path)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user