12 lines
215 B
Go
12 lines
215 B
Go
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
|
|
}
|