4
0
mirror of https://github.com/1f349/lavender.git synced 2025-03-09 21:13:16 +00:00

17 lines
227 B
Go
Raw Normal View History

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