aboutsummaryrefslogtreecommitdiff
path: root/auth.go
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2021-09-10 12:47:19 +0200
committerHimbeerserverDE <himbeerserverde@gmail.com>2021-09-10 12:47:19 +0200
commit7e72caa092194306ba6b5c6b58e6262fdd1fd72c (patch)
treea708f77cc188fb49b72dae608e100bb8ac0b4420 /auth.go
parent04d33fd100b67da504b16d9f98baa255d5060028 (diff)
Document exported code (#49)
Diffstat (limited to 'auth.go')
-rw-r--r--auth.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/auth.go b/auth.go
index 3334ebf..4feec77 100644
--- a/auth.go
+++ b/auth.go
@@ -5,7 +5,7 @@ import (
"time"
)
-var authIface AuthBackend
+var authIface authBackend
var ErrAuthBackendExists = errors.New("auth backend already set")
type user struct {
@@ -15,7 +15,7 @@ type user struct {
timestamp time.Time
}
-type AuthBackend interface {
+type authBackend interface {
Exists(name string) bool
Passwd(name string) (salt, verifier []byte, err error)
SetPasswd(name string, salt, verifier []byte) error
@@ -24,7 +24,7 @@ type AuthBackend interface {
Export() ([]user, error)
}
-func SetAuthBackend(ab AuthBackend) error {
+func setAuthBackend(ab authBackend) error {
if authIface != nil {
return ErrAuthBackendExists
}