@@ -31,7 +31,7 @@ type IssueStats struct {
3131 ThirtyDays * []Stat `json:"30d,omitempty"`
3232}
3333
34- //IssueTagValue represents a tags value
34+ // IssueTagValue represents a tags value
3535type IssueTagValue struct {
3636 Count * int64 `json:"count,omitempty"`
3737 FirstSeen * time.Time `json:"firstSeen,omitempty"`
@@ -51,13 +51,13 @@ type IssueTag struct {
5151 TopValues []IssueTagValue `json:"topValues,omitempty"`
5252}
5353
54- //Avatar is used for a users avatar
54+ // Avatar is used for a users avatar
5555type Avatar struct {
5656 AvatarType * string `json:"avatarType,omitempty"`
5757 AvatarUUID * string `json:"avatarUuid,omitempty"`
5858}
5959
60- //InternalUser is a user on sentry and not a external customer
60+ // InternalUser is a user on sentry and not a external customer
6161type InternalUser struct {
6262 AvatarURL * string `json:"avatarUrl,omitempty"`
6363 DateJoined * time.Time `json:"dateJoined,omitempty"`
@@ -71,7 +71,7 @@ type InternalUser struct {
7171 Username * string `json:"username,omitempty"`
7272}
7373
74- //Activity is what current activity has happend on a issue
74+ // Activity is what current activity has happend on a issue
7575type Activity struct {
7676 Data * map [string ]interface {} `json:"data,omitempty"`
7777 DateCreated * time.Time `json:"dateCreated,omitempty"`
@@ -134,7 +134,7 @@ func (i *issueQuery) ToQueryString() string {
134134 return query .Encode ()
135135}
136136
137- //GetIssues will fetch all issues for organization and project
137+ // GetIssues will fetch all issues for organization and project
138138func (c * Client ) GetIssues (o Organization , p Project , StatsPeriod * string , ShortIDLookup * bool , query * string ) ([]Issue , * Link , error ) {
139139 var issues []Issue
140140
@@ -149,54 +149,54 @@ func (c *Client) GetIssues(o Organization, p Project, StatsPeriod *string, Short
149149 return issues , link , err
150150}
151151
152- //GetIssue will fetch a issue by its ID as a string
152+ // GetIssue will fetch a issue by its ID as a string
153153func (c * Client ) GetIssue (id string ) (Issue , error ) {
154154 var issue Issue
155155 err := c .do ("GET" , fmt .Sprintf ("issues/%s" , id ), & issue , nil )
156156 return issue , err
157157}
158158
159- //GetIssueHashes will fetch all hashes for a issue
159+ // GetIssueHashes will fetch all hashes for a issue
160160func (c * Client ) GetIssueHashes (i Issue ) ([]Hash , * Link , error ) {
161161 var hashes []Hash
162162 link , err := c .doWithPagination ("GET" , fmt .Sprintf ("issues/%s/hashes" , * i .ID ), & hashes , nil )
163163 return hashes , link , err
164164}
165165
166- //GetIssueTags will fetch all tags for a issue
166+ // GetIssueTags will fetch all tags for a issue
167167func (c * Client ) GetIssueTags (i Issue ) ([]IssueTag , * Link , error ) {
168168 var tags []IssueTag
169169 link , err := c .doWithPagination ("GET" , fmt .Sprintf ("issues/%s/tags" , * i .ID ), & tags , nil )
170170 return tags , link , err
171171}
172172
173- //GetIssueTag will fetch a tag used in a issue. Eg; environment, release, server
173+ // GetIssueTag will fetch a tag used in a issue. Eg; environment, release, server
174174func (c * Client ) GetIssueTag (i Issue , tagname string ) (IssueTag , error ) {
175175 var tag IssueTag
176176 err := c .do ("GET" , fmt .Sprintf ("issues/%s/tags/%s" , * i .ID , tagname ), & tag , nil )
177177 return tag , err
178178}
179179
180- //GetIssueTagValues will fetch all values for a issues tag
180+ // GetIssueTagValues will fetch all values for a issues tag
181181func (c * Client ) GetIssueTagValues (i Issue , tag IssueTag ) ([]IssueTagValue , * Link , error ) {
182182 var values []IssueTagValue
183183 link , err := c .doWithPagination ("GET" , fmt .Sprintf ("issues/%s/tags/%s/values" , * i .ID , tag .Key ), & values , nil )
184184 return values , link , err
185185}
186186
187- //GetIssueEvents will fetch all events for a issue
187+ // GetIssueEvents will fetch all events for a issue
188188func (c * Client ) GetIssueEvents (i Issue ) ([]Event , * Link , error ) {
189189 var events []Event
190190 link , err := c .doWithPagination ("GET" , fmt .Sprintf ("issues/%s/events" , * i .ID ), & events , nil )
191191 return events , link , err
192192}
193193
194- //UpdateIssue will update status, assign to, hasseen, isbookmarked and issubscribed
194+ // UpdateIssue will update status, assign to, hasseen, isbookmarked and issubscribed
195195func (c * Client ) UpdateIssue (i Issue ) error {
196196 return c .do ("PUT" , fmt .Sprintf ("issues/%s" , * i .ID ), & i , & i )
197197}
198198
199- //DeleteIssue will delete an issue
199+ // DeleteIssue will delete an issue
200200func (c * Client ) DeleteIssue (i Issue ) error {
201201 return c .do ("DELETE" , fmt .Sprintf ("issues/%s" , * i .ID ), nil , nil )
202202}
0 commit comments