Skip to content

Commit

Permalink
Merge pull request #71 from unguiculus/fix-module
Browse files Browse the repository at this point in the history
Fix module
  • Loading branch information
schigh authored Oct 3, 2019
2 parents b5cab38 + 662cca1 commit a4a89dc
Show file tree
Hide file tree
Showing 15 changed files with 27 additions and 27 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ For _full_ examples, look through the [examples dir](examples/)

```golang
import (
health "github.com/InVisionApp/go-health"
"github.com/InVisionApp/go-health/checkers"
"github.com/InVisionApp/go-health/handlers"
health "github.com/InVisionApp/go-health/v2"
"github.com/InVisionApp/go-health/v2/checkers"
"github.com/InVisionApp/go-health/v2/handlers"
)

// Create a new health instance
Expand Down
6 changes: 3 additions & 3 deletions checkers/reachable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"testing"
"time"

"github.com/InVisionApp/go-health/checkers"
"github.com/InVisionApp/go-health/fakes"
"github.com/InVisionApp/go-health/fakes/netfakes"
"github.com/InVisionApp/go-health/v2/checkers"
"github.com/InVisionApp/go-health/v2/fakes"
"github.com/InVisionApp/go-health/v2/fakes/netfakes"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion checkers/sql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"fmt"
"testing"

. "github.com/onsi/gomega"
"github.com/DATA-DOG/go-sqlmock"
. "github.com/onsi/gomega"
)

const execSQL = "UPDATE some_table"
Expand Down
4 changes: 2 additions & 2 deletions examples/custom-checker-server/custom-checker-server.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"net/http"
"time"

"github.com/InVisionApp/go-health"
"github.com/InVisionApp/go-health/handlers"
"github.com/InVisionApp/go-health/v2"
"github.com/InVisionApp/go-health/v2/handlers"
)

type customCheck struct{}
Expand Down
6 changes: 3 additions & 3 deletions examples/simple-http-server/simple-http-server.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"net/url"
"time"

"github.com/InVisionApp/go-health"
"github.com/InVisionApp/go-health/checkers"
"github.com/InVisionApp/go-health/handlers"
"github.com/InVisionApp/go-health/v2"
"github.com/InVisionApp/go-health/v2/checkers"
"github.com/InVisionApp/go-health/v2/handlers"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions examples/status-listener/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"os"
"time"

"github.com/InVisionApp/go-health"
"github.com/InVisionApp/go-health/checkers"
"github.com/InVisionApp/go-health/handlers"
"github.com/InVisionApp/go-health/v2"
"github.com/InVisionApp/go-health/v2/checkers"
"github.com/InVisionApp/go-health/v2/handlers"
)

var svcLogger *log.Logger
Expand Down
2 changes: 1 addition & 1 deletion fakes/ireachabledatadogincrementer.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion fakes/isqlexecer.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion fakes/isqlpinger.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion fakes/isqlqueryer.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/InVisionApp/go-health
module github.com/InVisionApp/go-health/v2

require (
github.com/DATA-DOG/go-sqlmock v1.3.3
Expand Down
8 changes: 4 additions & 4 deletions handlers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ it at a handler func.

```golang
import (
"github.com/InVisionApp/go-health"
"github.com/InVisionApp/go-health/checkers"
"github.com/InVisionApp/go-health/handlers"
"github.com/InVisionApp/go-health/v2"
"github.com/InVisionApp/go-health/v2/checkers"
"github.com/InVisionApp/go-health/v2/handlers"
)

// create and configure a new health instance
Expand Down Expand Up @@ -50,4 +50,4 @@ If any check fails that is configured as `fatal` - the handler will return a
## `handlers.NewBasicHandlerFunc` example output
```
ok || failed
```
```
2 changes: 1 addition & 1 deletion handlers/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/http"
"sync"

"github.com/InVisionApp/go-health"
"github.com/InVisionApp/go-health/v2"
)

type jsonStatus struct {
Expand Down
2 changes: 1 addition & 1 deletion health_shared_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"time"

"github.com/InVisionApp/go-health/fakes"
"github.com/InVisionApp/go-health/v2/fakes"
"github.com/InVisionApp/go-logger"
)

Expand Down
2 changes: 1 addition & 1 deletion health_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

. "github.com/onsi/gomega"

"github.com/InVisionApp/go-health/fakes"
"github.com/InVisionApp/go-health/v2/fakes"
"github.com/InVisionApp/go-logger"
"github.com/InVisionApp/go-logger/shims/testlog"
)
Expand Down

0 comments on commit a4a89dc

Please sign in to comment.