Skip to content

Commit

Permalink
Merge pull request #15 from bkvaluemeal/status_codes
Browse files Browse the repository at this point in the history
Add StatusCodes to responses.go
  • Loading branch information
croman committed Oct 16, 2017
2 parents 1b6fa43 + 2817fbe commit 63610f9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions responses.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package statuscake

import (
"strings"
)

type autheticationErrorResponse struct {
ErrNo int
Error string
Expand Down Expand Up @@ -47,6 +51,7 @@ type detailResponse struct {
TriggerRate int `json:"TriggerRate,string"`
UseJar bool `json:"UseJar"`
PostRaw string `json:"PostRaw"`
StatusCodes []string `json:"StatusCodes"`
}

func (d *detailResponse) test() *Test {
Expand All @@ -72,5 +77,6 @@ func (d *detailResponse) test() *Test {
TriggerRate: d.TriggerRate,
UseJar: d.UseJar,
PostRaw: d.PostRaw,
StatusCodes: strings.Join(d.StatusCodes[:],", "),
}
}

0 comments on commit 63610f9

Please sign in to comment.