Documentation ¶
Index ¶
- Variables
- func CheckAppName(appname string) bool
- func GetStaticPushUrlList(appname string) ([]string, bool)
- func Init()
- type Application
- type Applications
- type JWT
- type RoomKeysType
- 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
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = viper.New()
View Source
var RoomKeys = &RoomKeysType{
localCache: cache.New(cache.NoExpiration, 0),
}
Functions ¶
func CheckAppName ¶
func GetStaticPushUrlList ¶
Types ¶
type Application ¶
type Applications ¶
type Applications []Application
type RoomKeysType ¶
type RoomKeysType struct {
// contains filtered or unexported fields
}
func (*RoomKeysType) DeleteChannel ¶
func (r *RoomKeysType) DeleteChannel(channel string) bool
func (*RoomKeysType) DeleteKey ¶
func (r *RoomKeysType) DeleteKey(key string) bool
func (*RoomKeysType) GetChannel ¶
func (r *RoomKeysType) GetChannel(key string) (channel string, err error)
type ServerCfg ¶
type ServerCfg struct { Level string `mapstructure:"level"` ConfigFile string `mapstructure:"config_file"` FLVArchive bool `mapstructure:"flv_archive"` FLVDir string `mapstructure:"flv_dir"` RTMPNoAuth bool `mapstructure:"rtmp_noauth"` RTMPAddr string `mapstructure:"rtmp_addr"` HTTPFLVAddr string `mapstructure:"httpflv_addr"` HLSAddr string `mapstructure:"hls_addr"` HLSKeepAfterEnd bool `mapstructure:"hls_keep_after_end"` APIAddr string `mapstructure:"api_addr"` RedisAddr string `mapstructure:"redis_addr"` RedisPwd string `mapstructure:"redis_pwd"` ReadTimeout int `mapstructure:"read_timeout"` WriteTimeout int `mapstructure:"write_timeout"` GopNum int `mapstructure:"gop_num"` JWT JWT `mapstructure:"jwt"` Server Applications `mapstructure:"server"` }
Click to show internal directories.
Click to hide internal directories.