This repository has been archived by the owner on Feb 23, 2023. It is now read-only.
/
tmi_struct.go
93 lines (79 loc) · 1.71 KB
/
tmi_struct.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
package main
import (
"net/http"
"os/exec"
"sync"
"fyne.io/fyne/widget"
"fyne.io/fyne"
)
//TMI TMI Download API 구조체
type TMI struct {
Result bool `json:"result"`
Data string `json:"data"`
Code int `json:"code"`
}
//Status 업데이트 정보 구조체
type Status struct {
Code int `json:"code"`
Version string `json:"version"`
Force bool `json:"force"`
}
//TwitchVOD Twitch v5 Videos Reference - Get Video 구조체
type TwitchVOD struct {
MutedSegments []struct {
Duration int `json:"duration"`
Offset int `json:"offset"`
} `json:"muted_segments"`
}
//SendLoginInfos 로그인 기록 구조체
type SendLoginInfos struct {
Type int `json:"type"`
}
//counter goroutine Counter 구조체
type counter struct {
i int
mu sync.Mutex
}
//HumanReadableError Twitch OAuth2
type HumanReadableError interface {
HumanError() string
HTTPCode() int
}
//HumanReadableWrapper Twitch OAuth2
type HumanReadableWrapper struct {
ToHuman string
Code int
error
}
//Handler Twitch OAuth2
type Handler func(http.ResponseWriter, *http.Request) error
//appInfo GUI App 정보
type appInfo struct {
name string
icon fyne.Resource
}
type enterEntry struct {
widget.Entry
}
type QueueInfo struct {
Done bool
Download int // 0: Multi, 1: Single
QoS int64 // bytes per second
Interval bool
IntervalStart bool
IntervalEnd bool
Type string
ID string
Title string
Time string
TimeInt int
Thumb string
TempDir string
FileName string
SSFFmpeg string
ToFFmpeg string
Progress *widget.ProgressBar
ProgStatus *widget.Entry
StatusLabel *widget.Label
CMD *exec.Cmd
}