Change store All to use channel
This commit is contained in:
@@ -38,7 +38,7 @@ type AttemptQuery struct {
|
||||
}
|
||||
type LoginAttemptStore interface {
|
||||
AddAttempt(l *models.LoginAttempt) error
|
||||
All() ([]models.LoginAttempt, error)
|
||||
All() (<-chan models.LoginAttempt, error)
|
||||
Stats(statType LoginStats, limit int) ([]StatsResult, error)
|
||||
Query(query AttemptQuery) ([]models.LoginAttempt, error)
|
||||
HealthCheker
|
||||
|
Reference in New Issue
Block a user