Documentation ¶
Overview ¶
Package enums has enums
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseProvider ¶
type DatabaseProvider string
var ( Local DatabaseProvider = "LOCAL" Turso DatabaseProvider = "TURSO" InvalidProvider DatabaseProvider = "INVALID" )
func ToDatabaseProvider ¶
func ToDatabaseProvider(p string) *DatabaseProvider
ToDatabaseProvider returns the database provider enum based on string input
func (DatabaseProvider) MarshalGQL ¶
func (r DatabaseProvider) MarshalGQL(w io.Writer)
MarshalGQL implement the Marshaler interface for gqlgen
func (DatabaseProvider) String ¶
func (r DatabaseProvider) String() string
String returns the DatabaseProvider as a string
func (*DatabaseProvider) UnmarshalGQL ¶
func (r *DatabaseProvider) UnmarshalGQL(v interface{}) error
UnmarshalGQL implement the Unmarshaler interface for gqlgen
func (DatabaseProvider) Values ¶
func (DatabaseProvider) Values() (kinds []string)
Values returns a slice of strings that represents all the possible values of the DatabaseProvider enum. Possible default values are "LOCAL", and "TURSO"
type DatabaseStatus ¶
type DatabaseStatus string
var ( Active DatabaseStatus = "ACTIVE" Creating DatabaseStatus = "CREATING" Deleting DatabaseStatus = "DELETING" Deleted DatabaseStatus = "DELETED" InvalidStatus DatabaseStatus = "INVALID" )
func ToDatabaseStatus ¶
func ToDatabaseStatus(r string) *DatabaseStatus
ToDatabaseStatus returns the database status enum based on string input
func (DatabaseStatus) MarshalGQL ¶
func (r DatabaseStatus) MarshalGQL(w io.Writer)
MarshalGQL implement the Marshaler interface for gqlgen
func (DatabaseStatus) String ¶
func (r DatabaseStatus) String() string
String returns the DatabaseStatus as a string
func (*DatabaseStatus) UnmarshalGQL ¶
func (r *DatabaseStatus) UnmarshalGQL(v interface{}) error
UnmarshalGQL implement the Unmarshaler interface for gqlgen
func (DatabaseStatus) Values ¶
func (DatabaseStatus) Values() (kinds []string)
Values returns a slice of strings that represents all the possible values of the DatabaseStatus enum. Possible default values are "ACTIVE", "CREATING", "DELETING", and "DELETED".
type Region ¶
type Region string
func (Region) MarshalGQL ¶
MarshalGQL implement the Marshaler interface for gqlgen
func (*Region) UnmarshalGQL ¶
UnmarshalGQL implement the Unmarshaler interface for gqlgen