-
Notifications
You must be signed in to change notification settings - Fork 0
/
structure.go
32 lines (28 loc) · 927 Bytes
/
structure.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package main
type config struct {
Token string `fig:"token" validate:"required"`
LogLevel string `fig:"loglevel"`
URLs []string `fig:"urls" validate:"required"`
Channel int64 `fig:"channel" validate:"required"`
Downloader string `fig:"downloader"`
}
type Downloader struct {
Status string `json:"status"`
Message string `json:"message"`
Endpoint string `json:"endpoint"`
Url string `json:"url"`
Type string `json:"type"`
VideoData struct {
WmVideoUrl string `json:"wm_video_url"`
WmVideoUrlHQ string `json:"wm_video_url_HQ"`
NwmVideoUrl string `json:"nwm_video_url"`
NwmVideoUrlHQ string `json:"nwm_video_url_HQ"`
} `json:"video_data"`
ImageData struct {
NoWatermarkImageList []string `json:"no_watermark_image_list"`
WatermarkImageList []string `json:"watermark_image_list"`
} `json:"image_data"`
}
type ytdlp struct {
Url string `json:"url"`
}