blob: 1a245083d9eea4083cefb83422cda21f1ab5d250 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package recording
import "bilibili-livestream-archiver/common"
type TaskConfig struct {
RoomId common.RoomId `mapstructure:"room_id"`
Transport TransportConfig `mapstructure:"transport"`
Download DownloadConfig `mapstructure:"download"`
}
type TransportConfig struct {
SocketTimeoutSeconds int `mapstructure:"socket_timeout_seconds"`
RetryIntervalSeconds int `mapstructure:"retry_interval_seconds"`
MaxRetryTimes int `mapstructure:"max_retry_times"`
}
type DownloadConfig struct {
SaveDirectory string `mapstructure:"save_directory"`
FileNameTemplate string `mapstructure:"file_name_template"`
}
|