package
Version:
v0.3.1
Opens a new window with list of versions in this module.
Published: Jun 27, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
var (
RoleOwner Role = "OWNER"
RoleAdmin Role = "ADMIN"
RoleMember Role = "MEMBER"
Invalid Role = "INVALID"
)
ToRole returns the Role based on string input
MarshalGQL implement the Marshaler interface for gqlgen
String returns the role as a string
func (r *Role) UnmarshalGQL(v interface{}) error
UnmarshalGQL implement the Unmarshaler interface for gqlgen
Values returns a slice of strings that represents all the possible values of the Role enum.
Possible default values are "ADMIN", and "MEMBER".
Source Files
¶
Click to show internal directories.
Click to hide internal directories.