Files
liveflow/config/config.go
2024-09-07 03:02:59 +09:00

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"`
}