Versions in this module Expand all Collapse all v0 v0.1.0 May 11, 2020 Changes in this version + var Config = viper.New() + var RoomKeys = &RoomKeysType + func CheckAppName(appname string) bool + func GetStaticPushUrlList(appname string) ([]string, bool) + func Init() + type Application struct + Appname string + Hls bool + Live bool + StaticPush []string + type Applications []Application + type JWT struct + Algorithm string + Secret string + type RoomKeysType struct + func (r *RoomKeysType) DeleteChannel(channel string) bool + func (r *RoomKeysType) DeleteKey(key string) bool + func (r *RoomKeysType) GetChannel(key string) (channel string, err error) + func (r *RoomKeysType) GetKey(channel string) (newKey string, err error) + func (r *RoomKeysType) SetKey(channel string) (key string, err error) + type ServerCfg struct + APIAddr string + ConfigFile string + FLVDir string + GopNum int + HLSAddr string + HLSKeepAfterEnd bool + HTTPFLVAddr string + JWT JWT + Level string + RTMPAddr string + ReadTimeout int + RedisAddr string + RedisPwd string + Server Applications + WriteTimeout int