mirror of
https://github.com/hsnks100/liveflow.git
synced 2025-09-26 20:21:12 +08:00
33 lines
671 B
Go
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"`
|
|
}
|