-
Notifications
You must be signed in to change notification settings - Fork 0
/
export_test.go
188 lines (149 loc) · 4.21 KB
/
export_test.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
package backlog
import (
"net/http"
"net/url"
)
type (
ExportFormType = formType
ExportQueryType = queryType
)
const (
ExportQueryActivityTypeIDs = queryActivityTypeIDs
ExportQueryAll = queryAll
ExportQueryArchived = queryArchived
ExportQueryCount = queryCount
ExportQueryKey = queryKey
ExportQueryKeyword = queryKeyword
ExportQueryOrder = queryOrder
)
const (
ExportFormArchived = formArchived
ExportFormChartEnabled = formChartEnabled
ExportFormContent = formContent
ExportFormKey = formKey
ExportFormName = formName
ExportFormMailAddress = formMailAddress
ExportFormMailNotify = formMailNotify
ExportFormPassword = formPassword
ExportFormProjectLeaderCanEditProjectLeader = formProjectLeaderCanEditProjectLeader
ExportFormRoleType = formRoleType
ExportFormSubtaskingEnabled = formSubtaskingEnabled
ExportFormTextFormattingRule = formTextFormattingRule
)
type (
ExportMethod = method
ExportRequestParams = FormParams
ExportWrapper = wrapper
)
var (
ExportClientNewReqest = (*Client).newReqest
ExportClientDo = (*Client).do
ExportClientGet = (*Client).get
ExportClientPost = (*Client).post
ExportClientPatch = (*Client).patch
ExportClientDelete = (*Client).delete
ExportClientUpload = (*Client).upload
)
var (
ExportQueryOptionSet = (*QueryOption).set
ExportQueryOptionValidate = (*QueryOption).validate
ExportFormOptionSet = (*FormOption).set
ExportFormOptionValidate = (*FormOption).validate
)
var (
ExportNewClientError = newClientError
ExportCeckResponse = checkResponse
ExportCreateFormFile = createFormFile
ExportCopy = copy
)
var ExportQueryParamsWithOptions = (*QueryParams).withOptions
func ExportNewQueryOption(qType queryType, qFunc queryOptionFunc) *QueryOption {
return &QueryOption{qType, qFunc}
}
func ExportNewFormOption(formType formType, fFunc formOptionFunc) *FormOption {
return &FormOption{formType, fFunc}
}
func (c *Client) ExportURL() *url.URL {
return c.url
}
func (c *Client) ExportSetURL(url *url.URL) {
c.url = url
}
func (c *Client) ExportHTTPClient() *http.Client {
return c.httpClient
}
func (c *Client) ExportSetHTTPClient(httpClient *http.Client) {
c.httpClient = httpClient
}
func (c *Client) ExportToken() string {
return c.token
}
func (c *Client) ExportSetToken(token string) {
c.token = token
}
func (c *Client) ExportSetWrapper(wrapper *wrapper) {
c.wrapper = wrapper
}
func (p *FormParams) ExportURLValues() *url.Values {
return p.Values
}
func (s *SpaceAttachmentService) ExportSetMethod(m *method) {
s.method = m
}
func (s *CategoryService) ExportSetMethod(m *method) {
s.method = m
}
func (s *CustomFieldService) ExportSetMethod(m *method) {
s.method = m
}
func (s *IssueService) ExportSetMethod(m *method) {
s.method = m
}
func (s *IssueAttachmentService) ExportSetMethod(m *method) {
s.method = m
}
func (s *PriorityService) ExportSetMethod(m *method) {
s.method = m
}
func (s *ProjectService) ExportSetMethod(m *method) {
s.method = m
}
func (s *ProjectActivityService) ExportSetMethod(m *method) {
s.method = m
}
func (s *ProjectUserService) ExportSetMethod(m *method) {
s.method = m
}
func (s *PullRequestService) ExportSetMethod(m *method) {
s.method = m
}
func (s *PullRequestAttachmentService) ExportSetMethod(m *method) {
s.method = m
}
func (s *ResolutionService) ExportSetMethod(m *method) {
s.method = m
}
func (s *SpaceService) ExportSetMethod(m *method) {
s.method = m
}
func (s *SpaceActivityService) ExportSetMethod(m *method) {
s.method = m
}
func (s *StatusService) ExportSetMethod(m *method) {
s.method = m
}
func (s *UserService) ExportSetMethod(m *method) {
s.method = m
}
func (s *UserActivityService) ExportSetMethod(m *method) {
s.method = m
}
func (s *VersionService) ExportSetMethod(m *method) {
s.method = m
}
func (s *WikiService) ExportSetMethod(m *method) {
s.method = m
}
func (s *WikiAttachmentService) ExportSetMethod(m *method) {
s.method = m
}