Files
liveflow/config/config.go
Han Gyoung-Su 6eedd16cbf Feature/thumbnail (#22)
* feat: thumbnail structure

* feat: make thumbnail, serve thumbnail
2025-06-22 23:25:32 +09:00

43 lines
1.0 KiB
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"`
Thumbnail Thumbnail `mapstructure:"thumbnail"`
}
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"`
}
// Thumbnail configuration for thumbnail generation service
type Thumbnail struct {
Enable bool `mapstructure:"enable"`
OutputPath string `mapstructure:"output_path"`
IntervalSeconds int `mapstructure:"interval_seconds"`
Width int `mapstructure:"width"`
Height int `mapstructure:"height"`
}