This repository has been archived on 2024-03-03. You can view files and clone it, but cannot push or open issues or pull requests.
adlin/pkg/login-validator/cmd/auth.go

12 lines
215 B
Go
Raw Normal View History

2020-02-20 23:18:56 +00:00
package main
type AuthMethod interface {
checkAuth(username, password string) (bool, error)
}
type NoAuth struct {}
func (NoAuth) checkAuth(username, password string) (res bool, err error) {
return true, nil
}