Documentation ¶
Overview ¶
Package enums has enums
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthProvider ¶
type AuthProvider string
var ( // Credentials provider is when the user authenticates with a username and password Credentials AuthProvider = "CREDENTIALS" // Google oauth2 provider for authentication Google AuthProvider = "GOOGLE" // Github oauth2 provider for authentication GitHub AuthProvider = "GITHUB" )
func (AuthProvider) MarshalGQL ¶
func (r AuthProvider) MarshalGQL(w io.Writer)
MarshalGQL implement the Marshaler interface for gqlgen
func (AuthProvider) String ¶
func (r AuthProvider) String() string
String returns the AuthProvider as a string
func (*AuthProvider) UnmarshalGQL ¶
func (r *AuthProvider) UnmarshalGQL(v interface{}) error
UnmarshalGQL implement the Unmarshaler interface for gqlgen
func (AuthProvider) Values ¶
func (AuthProvider) Values() (kinds []string)
Values returns a slice of strings that represents all the possible values of the AuthProvider enum. Possible default values are "CREDENTIALS", "GOOGLE", and "GITHUB"
type Role ¶
type Role string
func (Role) MarshalGQL ¶
MarshalGQL implement the Marshaler interface for gqlgen
func (*Role) UnmarshalGQL ¶
UnmarshalGQL implement the Unmarshaler interface for gqlgen
Click to show internal directories.
Click to hide internal directories.