Move around how SocialHandles are configured. Closes #30

This commit is contained in:
Gabe Kangas
2020-06-30 17:11:24 -07:00
parent b4c9654dac
commit 85cec76445
2 changed files with 17 additions and 7 deletions

View File

@@ -33,10 +33,15 @@ type InstanceDetails struct {
Summary string `yaml:"summary" json:"summary"`
Logo map[string]string `yaml:"logo" json:"logo"`
Tags []string `yaml:"tags" json:"tags"`
SocialHandles map[string]string `yaml:"socialHandles" json:"socialHandles"`
SocialHandles []socialHandle `yaml:"socialHandles" json:"socialHandles"`
ExtraInfoFile string `yaml:"extraUserInfoFileName" json:"extraUserInfoFileName"`
}
type socialHandle struct {
Platform string `yaml:"platform" json:"platform"`
URL string `yaml:"url" json:"url"`
}
type videoSettings struct {
ChunkLengthInSeconds int `yaml:"chunkLengthInSeconds"`
StreamingKey string `yaml:"streamingKey"`