mirror of
https://github.com/hsnks100/liveflow.git
synced 2025-09-26 20:21:12 +08:00
18 lines
373 B
Go
18 lines
373 B
Go
package config
|
|
|
|
// Struct to hold the configuration
|
|
type Config struct {
|
|
Whep ServerConfig `mapstructure:"whep"`
|
|
RTMP ServerConfig `mapstructure:"rtmp"`
|
|
HLS ServerConfig `mapstructure:"hls"`
|
|
Docker DockerConfig `mapstructure:"docker"`
|
|
}
|
|
|
|
type ServerConfig struct {
|
|
Port int `mapstructure:"port"`
|
|
}
|
|
|
|
type DockerConfig struct {
|
|
Mode bool `mapstructure:"mode"`
|
|
}
|