diff options
author | Keuin <[email protected]> | 2023-07-11 22:56:07 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2023-07-11 22:56:07 +0800 |
commit | f5c63cde56eb35c0125a0545f084441cdd4340ab (patch) | |
tree | cf24779daaa3067902bef91d21bcdee7a78fd059 /recording/config.go | |
parent | 7fd817f6d1ead3de85294c1893a6e1572a1d12e3 (diff) |
Refactor: move data structures to a separate package to avoid circular dependency.
Diffstat (limited to 'recording/config.go')
-rw-r--r-- | recording/config.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/recording/config.go b/recording/config.go index 9a95e62..52406f3 100644 --- a/recording/config.go +++ b/recording/config.go @@ -2,21 +2,21 @@ package recording import ( "fmt" - "github.com/keuin/slbr/bilibili" + "github.com/keuin/slbr/types" ) type TaskConfig struct { - RoomId bilibili.RoomId `mapstructure:"room_id"` + RoomId types.RoomId `mapstructure:"room_id"` Transport TransportConfig `mapstructure:"transport"` Download DownloadConfig `mapstructure:"download"` Watch WatchConfig `mapstructure:"watch"` } type TransportConfig struct { - SocketTimeoutSeconds int `mapstructure:"socket_timeout_seconds"` - RetryIntervalSeconds int `mapstructure:"retry_interval_seconds"` - MaxRetryTimes int `mapstructure:"max_retry_times"` - AllowedNetworkTypes []bilibili.IpNetType `mapstructure:"allowed_network_types"` + SocketTimeoutSeconds int `mapstructure:"socket_timeout_seconds"` + RetryIntervalSeconds int `mapstructure:"retry_interval_seconds"` + MaxRetryTimes int `mapstructure:"max_retry_times"` + AllowedNetworkTypes []types.IpNetType `mapstructure:"allowed_network_types"` } type DownloadConfig struct { |