mirror of
https://github.com/owncast/owncast.git
synced 2024-11-21 12:18:02 +03:00
0b5d7c8a4d
* WIP * fix(test): fix ap test failing * fix: fix unkeyed fields being used * chore(tests): clean up browser tests by splitting out federation UI tests
129 lines
4.8 KiB
Go
129 lines
4.8 KiB
Go
package configrepository
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/owncast/owncast/models"
|
|
"github.com/owncast/owncast/utils"
|
|
)
|
|
|
|
type ConfigRepository interface {
|
|
GetExtraPageBodyContent() string
|
|
SetExtraPageBodyContent(content string) error
|
|
GetStreamTitle() string
|
|
SetStreamTitle(title string) error
|
|
GetAdminPassword() string
|
|
SetAdminPassword(key string) error
|
|
GetLogoPath() string
|
|
SetLogoPath(logo string) error
|
|
SetLogoUniquenessString(uniqueness string) error
|
|
GetLogoUniquenessString() string
|
|
GetServerSummary() string
|
|
SetServerSummary(summary string) error
|
|
GetServerWelcomeMessage() string
|
|
SetServerWelcomeMessage(welcomeMessage string) error
|
|
GetServerName() string
|
|
SetServerName(name string) error
|
|
GetServerURL() string
|
|
SetServerURL(url string) error
|
|
GetHTTPPortNumber() int
|
|
SetWebsocketOverrideHost(host string) error
|
|
GetWebsocketOverrideHost() string
|
|
SetHTTPPortNumber(port float64) error
|
|
GetHTTPListenAddress() string
|
|
SetHTTPListenAddress(address string) error
|
|
GetRTMPPortNumber() int
|
|
SetRTMPPortNumber(port float64) error
|
|
GetServerMetadataTags() []string
|
|
SetServerMetadataTags(tags []string) error
|
|
GetDirectoryEnabled() bool
|
|
SetDirectoryEnabled(enabled bool) error
|
|
SetDirectoryRegistrationKey(key string) error
|
|
GetDirectoryRegistrationKey() string
|
|
GetSocialHandles() []models.SocialHandle
|
|
SetSocialHandles(socialHandles []models.SocialHandle) error
|
|
GetPeakSessionViewerCount() int
|
|
SetPeakSessionViewerCount(count int) error
|
|
GetPeakOverallViewerCount() int
|
|
SetPeakOverallViewerCount(count int) error
|
|
GetLastDisconnectTime() (*utils.NullTime, error)
|
|
SetLastDisconnectTime(disconnectTime time.Time) error
|
|
SetNSFW(isNSFW bool) error
|
|
GetNSFW() bool
|
|
SetFfmpegPath(path string) error
|
|
GetFfMpegPath() string
|
|
GetS3Config() models.S3
|
|
SetS3Config(config models.S3) error
|
|
GetStreamLatencyLevel() models.LatencyLevel
|
|
SetStreamLatencyLevel(level float64) error
|
|
GetStreamOutputVariants() []models.StreamOutputVariant
|
|
SetStreamOutputVariants(variants []models.StreamOutputVariant) error
|
|
SetChatDisabled(disabled bool) error
|
|
GetChatDisabled() bool
|
|
SetChatEstablishedUsersOnlyMode(enabled bool) error
|
|
GetChatEstbalishedUsersOnlyMode() bool
|
|
SetChatSpamProtectionEnabled(enabled bool) error
|
|
GetChatSpamProtectionEnabled() bool
|
|
SetChatSlurFilterEnabled(enabled bool) error
|
|
GetChatSlurFilterEnabled() bool
|
|
GetExternalActions() []models.ExternalAction
|
|
SetExternalActions(actions []models.ExternalAction) error
|
|
SetCustomStyles(styles string) error
|
|
GetCustomStyles() string
|
|
SetCustomJavascript(styles string) error
|
|
GetCustomJavascript() string
|
|
SetVideoCodec(codec string) error
|
|
GetVideoCodec() string
|
|
VerifySettings() error
|
|
FindHighestVideoQualityIndex(qualities []models.StreamOutputVariant) (int, bool)
|
|
GetForbiddenUsernameList() []string
|
|
SetForbiddenUsernameList(usernames []string) error
|
|
GetSuggestedUsernamesList() []string
|
|
SetSuggestedUsernamesList(usernames []string) error
|
|
GetServerInitTime() (*utils.NullTime, error)
|
|
SetServerInitTime(t time.Time) error
|
|
SetFederationEnabled(enabled bool) error
|
|
GetFederationEnabled() bool
|
|
SetFederationUsername(username string) error
|
|
GetFederationUsername() string
|
|
SetFederationGoLiveMessage(message string) error
|
|
GetFederationGoLiveMessage() string
|
|
SetFederationIsPrivate(isPrivate bool) error
|
|
GetFederationIsPrivate() bool
|
|
SetFederationShowEngagement(showEngagement bool) error
|
|
GetFederationShowEngagement() bool
|
|
SetBlockedFederatedDomains(domains []string) error
|
|
GetBlockedFederatedDomains() []string
|
|
SetChatJoinMessagesEnabled(enabled bool) error
|
|
GetChatJoinPartMessagesEnabled() bool
|
|
SetNotificationsEnabled(enabled bool) error
|
|
GetNotificationsEnabled() bool
|
|
GetDiscordConfig() models.DiscordConfiguration
|
|
SetDiscordConfig(config models.DiscordConfiguration) error
|
|
GetBrowserPushConfig() models.BrowserNotificationConfiguration
|
|
SetBrowserPushConfig(config models.BrowserNotificationConfiguration) error
|
|
SetBrowserPushPublicKey(key string) error
|
|
GetBrowserPushPublicKey() (string, error)
|
|
SetBrowserPushPrivateKey(key string) error
|
|
GetBrowserPushPrivateKey() (string, error)
|
|
SetHasPerformedInitialNotificationsConfig(hasConfigured bool) error
|
|
GetHasPerformedInitialNotificationsConfig() bool
|
|
GetHideViewerCount() bool
|
|
SetHideViewerCount(hide bool) error
|
|
GetCustomOfflineMessage() string
|
|
SetCustomOfflineMessage(message string) error
|
|
SetCustomColorVariableValues(variables map[string]string) error
|
|
GetCustomColorVariableValues() map[string]string
|
|
GetStreamKeys() []models.StreamKey
|
|
SetStreamKeys(actions []models.StreamKey) error
|
|
SetDisableSearchIndexing(disableSearchIndexing bool) error
|
|
GetDisableSearchIndexing() bool
|
|
GetVideoServingEndpoint() string
|
|
SetVideoServingEndpoint(message string) error
|
|
GetFederatedInboxMap() map[string]string
|
|
GetDefaultFederationUsername() string
|
|
GetPublicKey() string
|
|
GetPrivateKey() string
|
|
SetPublicKey(key string) error
|
|
SetPrivateKey(key string) error
|
|
}
|