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 ¶ added in v0.2.7
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 ¶ added in v0.2.7
func (r AuthProvider) MarshalGQL(w io.Writer)
MarshalGQL implement the Marshaler interface for gqlgen
func (AuthProvider) String ¶ added in v0.2.7
func (r AuthProvider) String() string
String returns the AuthProvider as a string
func (*AuthProvider) UnmarshalGQL ¶ added in v0.2.7
func (r *AuthProvider) UnmarshalGQL(v interface{}) error
UnmarshalGQL implement the Unmarshaler interface for gqlgen
func (AuthProvider) Values ¶ added in v0.2.7
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 InviteStatus ¶ added in v0.2.6
type InviteStatus string
var ( InvitationSent InviteStatus = "INVITATION_SENT" ApprovalRequired InviteStatus = "APPROVAL_REQUIRED" InvitationAccepted InviteStatus = "INVITATION_ACCEPTED" InvitationExpired InviteStatus = "INVITATION_EXPIRED" InviteInvalid InviteStatus = "INVITE_INVALID" )
func ToInviteStatus ¶ added in v0.2.6
func ToInviteStatus(r string) InviteStatus
ToInviteStatus returns the invite status enum based on string input
func (InviteStatus) MarshalGQL ¶ added in v0.2.6
func (r InviteStatus) MarshalGQL(w io.Writer)
MarshalGQL implement the Marshaler interface for gqlgen
func (InviteStatus) String ¶ added in v0.2.6
func (r InviteStatus) String() string
String returns the invite status as a string
func (*InviteStatus) UnmarshalGQL ¶ added in v0.2.6
func (r *InviteStatus) UnmarshalGQL(v interface{}) error
UnmarshalGQL implement the Unmarshaler interface for gqlgen
func (InviteStatus) Values ¶ added in v0.2.6
func (InviteStatus) Values() (kinds []string)
Values returns a slice of strings that represents all the possible values of the InviteStatus enum. Possible default values are "INVITATION_SENT", "APPROVAL_REQUIRED", "INVITATION_ACCEPTED", and "INVITATION_EXPIRED"
type JoinPolicy ¶ added in v0.2.6
type JoinPolicy string
var ( Open JoinPolicy = "OPEN" InviteOnly JoinPolicy = "INVITE_ONLY" ApplicationOnly JoinPolicy = "APPLICATION_ONLY" InviteOrApplication JoinPolicy = "INVITE_OR_APPLICATION" )
func (JoinPolicy) MarshalGQL ¶ added in v0.2.6
func (r JoinPolicy) MarshalGQL(w io.Writer)
MarshalGQL implement the Marshaler interface for gqlgen
func (JoinPolicy) String ¶ added in v0.2.6
func (r JoinPolicy) String() string
String returns the JoinPolicy as a string
func (*JoinPolicy) UnmarshalGQL ¶ added in v0.2.6
func (r *JoinPolicy) UnmarshalGQL(v interface{}) error
UnmarshalGQL implement the Unmarshaler interface for gqlgen
func (JoinPolicy) Values ¶ added in v0.2.6
func (JoinPolicy) Values() (kinds []string)
Values returns a slice of strings that represents all the possible values of the JoinPolicy enum. Possible default values are "OPEN", "INVITE_ONLY", "APPLICATION_ONLY", and "INVITE_OR_APPLICATION".
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
type Tier ¶ added in v0.2.6
type Tier string
func (Tier) MarshalGQL ¶ added in v0.2.6
MarshalGQL implement the Marshaler interface for gqlgen
func (*Tier) UnmarshalGQL ¶ added in v0.2.6
UnmarshalGQL implement the Unmarshaler interface for gqlgen
type UserStatus ¶ added in v0.2.6
type UserStatus string
var ( Active UserStatus = "ACTIVE" Inactive UserStatus = "INACTIVE" Deactivated UserStatus = "DEACTIVATED" Suspended UserStatus = "SUSPENDED" )
func (UserStatus) MarshalGQL ¶ added in v0.2.6
func (r UserStatus) MarshalGQL(w io.Writer)
MarshalGQL implement the Marshaler interface for gqlgen
func (UserStatus) String ¶ added in v0.2.6
func (r UserStatus) String() string
String returns the UserStatus as a string
func (*UserStatus) UnmarshalGQL ¶ added in v0.2.6
func (r *UserStatus) UnmarshalGQL(v interface{}) error
UnmarshalGQL implement the Unmarshaler interface for gqlgen
func (UserStatus) Values ¶ added in v0.2.6
func (UserStatus) Values() (kinds []string)
Values returns a slice of strings that represents all the possible values of the UserStatus enum. Possible default values are "ACTIVE", "INACTIVE", "DEACTIVATED", and "SUSPENDED".
type Visibility ¶ added in v0.2.6
type Visibility string
var ( Public Visibility = "PUBLIC" Private Visibility = "PRIVATE" )
func (Visibility) MarshalGQL ¶ added in v0.2.6
func (r Visibility) MarshalGQL(w io.Writer)
MarshalGQL implement the Marshaler interface for gqlgen
func (Visibility) String ¶ added in v0.2.6
func (r Visibility) String() string
String returns the visibility as a string
func (*Visibility) UnmarshalGQL ¶ added in v0.2.6
func (r *Visibility) UnmarshalGQL(v interface{}) error
UnmarshalGQL implement the Unmarshaler interface for gqlgen
func (Visibility) Values ¶ added in v0.2.6
func (Visibility) Values() (kinds []string)
Values returns a slice of strings that represents all the possible values of the Visibility enum. Possible default values are "PUBLIC", and "PRIVATE".