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
214 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)
}
2021-02-13 17:34:44 +00:00
type NoAuth struct{}
2020-02-20 23:18:56 +00:00
func (NoAuth) checkAuth(username, password string) (res bool, err error) {
return true, nil
}