add auth layer

This commit is contained in:
Arkadiy Kukarkin
2025-12-23 12:23:32 +01:00
parent c4889d7d16
commit 725a673fb0
4 changed files with 148 additions and 0 deletions

9
auth/auth.go Normal file
View File

@@ -0,0 +1,9 @@
package auth
import "errors"
var ErrAuthFailed = errors.New("authentication failed")
type Authenticator interface {
Authenticate(user, pass string) error
}