Skip to content

Commit

Permalink
Bump version to 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
amwolff committed Oct 18, 2020
1 parent a2c4441 commit 9d2d8b5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ jobs:
uses: golangci/golangci-lint-action@v2
with:
version: v1.31
args: -E goimports
args: -E goimports -E godot
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
Nagios Core API client
======================
# Nagios Core API client ![CI](https://github.com/ulumuri/go-nagios/workflows/CI/badge.svg)

This is a Go client for the Nagios Core API that can communicate with the Nagios Core JSON CGIs.
It's the programmatic equivalent of the `<nagios>/nagios/jsonquery.html`.

## Installation

`go get -u github.com/ulumuri/go-nagios/nagios`
`go get -u github.com/ulumuri/go-nagios/nagios@v1.0.0`

## Support

Expand Down Expand Up @@ -50,7 +49,7 @@ It's the programmatic equivalent of the `<nagios>/nagios/jsonquery.html`.
- [ ] hostdependencylist
- [ ] hostescalationcount
- [ ] hostescalationlist
- [ ] Status JSON CGI
- [x] Status JSON CGI
- [x] hostcount
- [x] hostlist
- [x] host
Expand Down
2 changes: 1 addition & 1 deletion nagios/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (c Client) Query(b QueryBuilder, v interface{}) error {

if res.StatusCode != http.StatusOK {
// io.Copy(ioutil.Discard, res.Body)
return fmt.Errorf("non-200 respone status code (%d)", res.StatusCode)
return fmt.Errorf("non-200 response status code (%d)", res.StatusCode)
}

d := json.NewDecoder(res.Body)
Expand Down
2 changes: 1 addition & 1 deletion nagios/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ type ServiceDetails struct {
ShouldBeScheduled bool `json:"should_be_scheduled"`
LastCheck int64 `json:"last_check"`

// CheckOptions with bitmask turns to the array
// CheckOptions with bitmask turns into an array.
CheckOptions json.RawMessage `json:"check_options"`
CheckType string `json:"check_type"`
ChecksEnabled bool `json:"checks_enabled"`
Expand Down

0 comments on commit 9d2d8b5

Please sign in to comment.