enums

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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
var (
	Amer          Region = "AMER"
	Emea          Region = "EMEA"
	Apac          Region = "APAC"
	InvalidRegion Region = "INVALID"
)

func ToRegion

func ToRegion(p string) *Region

ToRegion returns the database provider enum based on string input

func (Region) MarshalGQL

func (r Region) MarshalGQL(w io.Writer)

MarshalGQL implement the Marshaler interface for gqlgen

func (Region) String

func (r Region) String() string

String returns the Region as a string

func (*Region) UnmarshalGQL

func (r *Region) UnmarshalGQL(v interface{}) error

UnmarshalGQL implement the Unmarshaler interface for gqlgen

func (Region) Values

func (Region) Values() (kinds []string)

Values returns a slice of strings that represents all the possible values of the Region enum. Possible default values are "AMER", "EMEA", and "APAC"

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL