Make stream keys objects with comment instead of string slice

This commit is contained in:
Gabe Kangas
2022-11-23 16:39:55 -08:00
parent c9e3ccad45
commit c4dc802941
8 changed files with 46 additions and 19 deletions

View File

@@ -21,7 +21,7 @@ type Defaults struct {
WebServerIP string
RTMPServerPort int
AdminPassword string
StreamKeys []string
StreamKeys []models.StreamKey
YPEnabled bool
YPServer string
@@ -44,7 +44,9 @@ func GetDefaults() Defaults {
ServerWelcomeMessage: "",
Logo: "logo.svg",
AdminPassword: "abc123",
StreamKeys: []string{"abc123"},
StreamKeys: []models.StreamKey{
{Key: "abc123", Comment: "Default stream key"},
},
Tags: []string{
"owncast",
"streaming",