Change healthchecker to return error
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
package store
|
||||
|
||||
import "github.uio.no/torjus/apiary/models"
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"github.uio.no/torjus/apiary/models"
|
||||
)
|
||||
|
||||
var ErrStoreUnhealthy = errors.New("store is unhealthy")
|
||||
|
||||
type LoginStats string
|
||||
|
||||
@@ -39,5 +45,5 @@ type LoginAttemptStore interface {
|
||||
}
|
||||
|
||||
type HealthCheker interface {
|
||||
IsHealthy() bool
|
||||
IsHealthy() error
|
||||
}
|
||||
|
Reference in New Issue
Block a user