chore: add enumer for iota-defined types

This commit is contained in:
David Sharnoff 2022-07-20 17:30:02 -07:00
parent 5fb36bf4c2
commit 9abc112f8f
4 changed files with 360 additions and 7 deletions

View file

@ -6,15 +6,18 @@ import (
"github.com/zitadel/oidc/pkg/oidc"
)
//go:generate go get github.com/dmarkham/enumer
//go:generate go run github.com/dmarkham/enumer -linecomment -sql -json -text -yaml -gqlgen -type=ApplicationType,AccessTokenType
const (
ApplicationTypeWeb ApplicationType = iota
ApplicationTypeUserAgent
ApplicationTypeNative
ApplicationTypeWeb ApplicationType = iota // web
ApplicationTypeUserAgent // user_agent
ApplicationTypeNative // native
)
const (
AccessTokenTypeBearer AccessTokenType = iota
AccessTokenTypeJWT
AccessTokenTypeBearer AccessTokenType = iota // bearer
AccessTokenTypeJWT // JWT
)
type ApplicationType int