Implement table-based authentication provider

This commit is contained in:
fox.cpp 2020-02-29 23:18:22 +03:00
parent a91d8c2334
commit cdd01c8e37
No known key found for this signature in database
GPG key ID: E76D97CCEDE90B6C
10 changed files with 450 additions and 1 deletions

View file

@ -0,0 +1,11 @@
package testutils
type Table struct {
M map[string]string
Err error
}
func (m Table) Lookup(a string) (string, bool, error) {
b, ok := m.M[a]
return b, ok, m.Err
}