Files
liveflow/config/config.go
2024-09-13 08:27:29 +09:00

33 lines
671 B
Go

package config
// Struct to hold the configuration
type Config struct {
RTMP RTMP `mapstructure:"rtmp"`
Service Service `mapstructure:"service"`
Docker DockerConfig `mapstructure:"docker"`
MP4 MP4 `mapstructure:"mp4"`
EBML EBML `mapstructure:"ebml"`
}
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"`
}
type MP4 struct {
Record bool `mapstructure:"record"`
}
type EBML struct {
Record bool `mapstructure:"record"`
}