mirror of
https://github.com/parkan/go-hauk.git
synced 2026-05-08 16:47:46 +02:00
add auth layer
This commit is contained in:
9
auth/auth.go
Normal file
9
auth/auth.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package auth
|
||||
|
||||
import "errors"
|
||||
|
||||
var ErrAuthFailed = errors.New("authentication failed")
|
||||
|
||||
type Authenticator interface {
|
||||
Authenticate(user, pass string) error
|
||||
}
|
||||
Reference in New Issue
Block a user