This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
SyncRefs/config.go

25 lines
483 B
Go

package main
import "encoding/xml"
type Config struct {
XMLName xml.Name `xml:"config"`
SyncRefs []SyncRef `xml:"refs>ref"`
Groups []Group `xml:"groups>group"`
}
type Group struct {
XMLName xml.Name `xml:"group"`
ID string `xml:"id,attr"`
Active bool `xml:"active,attr"`
Contains []string `xml:"contains>refID"`
}
type SyncRef struct {
XMLName xml.Name `xml:"ref"`
ID string `xml:"id,attr"`
URI string
ReadOnly bool
Deletes bool
}