Files
wrouter/auth/authenticator.go
T

10 lines
223 B
Go

package auth
type Authenticator interface {
ID() string
Name() string
Find(userid string) *User
Login(userid, password string) (*User, error)
Register(userid, password string, data map[string]string) (*User, error)
}