mirror of
https://github.com/1f349/lavender.git
synced 2024-10-18 16:41:51 +01:00
17 lines
226 B
Go
17 lines
226 B
Go
|
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]
|
||
|
}
|