go-sigsci
go-sigsci copied to clipboard
Go client library for the Signal Sciences API.
- This PR updates the corp struct to return values expected by the endpoint itself. - There are no tests on corp to extend by the looks of it, and...
When consuming the API there are times one might want to marshal the go types. For example when using the go sdk to get the request feed, marshal, then log...
Update GetAllSiteRules to handle the new increased limits for rules per site.
```go package marshal import ( "fmt" "github.com/hashicorp/hcl2/gohcl" "github.com/hashicorp/hcl2/hclwrite" "github.com/signalsciences/go-sigsci" ) type localCreateSignalTagBody sigsci.CreateSignalTagBody func (l localCreateSignalTagBody) marshalSiteText(localName, site string) string { str := fmt.Sprintf(`resource %s "%s" { site_short_name = "%s"...
The fix is to remove the omit empty tag so a value of percent_enabled = 0 does not get dropped by the API.