Files
liveflow/config/config.go
2024-09-08 22:28:19 +09:00

23 lines
467 B
Go

package config
// Struct to hold the configuration
type Config struct {
RTMP RTMP `mapstructure:"rtmp"`
Service Service `mapstructure:"service"`
Docker DockerConfig `mapstructure:"docker"`
}
type RTMP struct {
Port int `mapstructure:"port"`
}
type Service struct {
Port int `mapstructure:"port"`
LLHLS bool `mapstructure:"llhls"`
DiskRam bool `mapstructure:"disk_ram"`
}
type DockerConfig struct {
Mode bool `mapstructure:"mode"`
}