Versions in this module Expand all Collapse all v0 v0.1.10 Oct 5, 2021 v0.1.9 Oct 5, 2021 Changes in this version + func CreateMessagesTable(db *sql.DB) + func DeleteWebhook(id int) error + func FindHighestVideoQualityIndex(qualities []models.StreamOutputVariant) int + func GetChatDisabled() bool + func GetCustomStyles() string + func GetDatabase() *sql.DB + func GetDirectoryEnabled() bool + func GetDirectoryRegistrationKey() string + func GetExternalActions() []models.ExternalAction + func GetExtraPageBodyContent() string + func GetFfMpegPath() string + func GetForbiddenUsernameList() []string + func GetHTTPListenAddress() string + func GetHTTPPortNumber() int + func GetLastDisconnectTime() (*utils.NullTime, error) + func GetLogoPath() string + func GetNSFW() bool + func GetPeakOverallViewerCount() int + func GetPeakSessionViewerCount() int + func GetRTMPPortNumber() int + func GetS3Config() models.S3 + func GetS3StorageEnabled() bool + func GetServerMetadataTags() []string + func GetServerName() string + func GetServerSummary() string + func GetServerURL() string + func GetServerWelcomeMessage() string + func GetSocialHandles() []models.SocialHandle + func GetStreamKey() string + func GetStreamLatencyLevel() models.LatencyLevel + func GetStreamOutputVariants() []models.StreamOutputVariant + func GetStreamTitle() string + func GetVideoCodec() string + func GetWebhooks() ([]models.Webhook, error) + func GetWebhooksForEvent(event models.EventType) []models.Webhook + func HasPopulatedDefaults() bool + func InsertWebhook(url string, events []models.EventType) (int, error) + func PopulateDefaults() + func SetChatDisabled(disabled bool) error + func SetCustomStyles(styles string) error + func SetDirectoryEnabled(enabled bool) error + func SetDirectoryRegistrationKey(key string) error + func SetExternalActions(actions []models.ExternalAction) error + func SetExtraPageBodyContent(content string) error + func SetFfmpegPath(path string) error + func SetForbiddenUsernameList(usernames []string) error + func SetHTTPListenAddress(address string) error + func SetHTTPPortNumber(port float64) error + func SetLastDisconnectTime(disconnectTime time.Time) error + func SetLogoPath(logo string) error + func SetNSFW(isNSFW bool) error + func SetPeakOverallViewerCount(count int) error + func SetPeakSessionViewerCount(count int) error + func SetRTMPPortNumber(port float64) error + func SetS3Config(config models.S3) error + func SetS3StorageEnabled(enabled bool) error + func SetServerMetadataTags(tags []string) error + func SetServerName(name string) error + func SetServerSummary(summary string) error + func SetServerURL(url string) error + func SetServerWelcomeMessage(welcomeMessage string) error + func SetSocialHandles(socialHandles []models.SocialHandle) error + func SetStreamKey(key string) error + func SetStreamLatencyLevel(level float64) error + func SetStreamOutputVariants(variants []models.StreamOutputVariant) error + func SetStreamTitle(title string) error + func SetVideoCodec(codec string) error + func SetWebhookAsUsed(id string) error + func SetupPersistence(file string) error + func VerifySettings() error + type ConfigEntry struct + Key string + Value interface{} + type Datastore struct + DB *sql.DB + DbLock *sync.Mutex + func GetDatastore() *Datastore + func GetStore() *Datastore + func (ds *Datastore) Get(key string) (ConfigEntry, error) + func (ds *Datastore) GetBool(key string) (bool, error) + func (ds *Datastore) GetCachedValue(key string) ([]byte, error) + func (ds *Datastore) GetNumber(key string) (float64, error) + func (ds *Datastore) GetString(key string) (string, error) + func (ds *Datastore) Reset() + func (ds *Datastore) Save(e ConfigEntry) error + func (ds *Datastore) SetBool(key string, value bool) error + func (ds *Datastore) SetCachedValue(key string, b []byte) + func (ds *Datastore) SetNumber(key string, value float64) error + func (ds *Datastore) SetString(key string, value string) error + func (ds *Datastore) Setup()