lavender/database/types/authtype.go

17 lines
226 B
Go
Raw Normal View History

2024-09-13 15:31:40 +01:00
package types
type AuthType byte
const (
AuthTypeBase AuthType = iota
AuthTypeOauth2
)
var authTypeNames = map[AuthType]string{
AuthTypeOauth2: "OAuth2",
}
func (t AuthType) String() string {
return authTypeNames[t]
}