Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllCountry = []Country{ CountryAmerica, CountryEngland, CountryGermany, CountryKorea, CountryNetherlands, CountryIndonesia, CountryPortugal, CountrySerbia, CountrySpain, CountryTaiwan, CountryThailand, }
View Source
var AllExerciseType = []ExerciseType{ ExerciseTypeCalisthenics, ExerciseTypeHiking, ExerciseTypeSport, ExerciseTypeStrengthTraining, }
View Source
var AllGameGenre = []GameGenre{ GameGenreAdventure, GameGenreBoard, GameGenreFps, GameGenreCard, GameGenreRpg, GameGenreRoguelite, GameGenreSimulation, GameGenreStrategy, }
View Source
var AllProgrammingLanguage = []ProgrammingLanguage{ ProgrammingLanguageCsharp, ProgrammingLanguageGo, ProgrammingLanguageRust, ProgrammingLanguageTypescript, }
Functions ¶
This section is empty.
Types ¶
type Country ¶
type Country string
const ( CountryAmerica Country = "AMERICA" CountryEngland Country = "ENGLAND" CountryGermany Country = "GERMANY" CountryKorea Country = "KOREA" CountryNetherlands Country = "NETHERLANDS" CountryIndonesia Country = "INDONESIA" CountryPortugal Country = "PORTUGAL" CountrySerbia Country = "SERBIA" CountrySpain Country = "SPAIN" CountryTaiwan Country = "TAIWAN" CountryThailand Country = "THAILAND" )
func (Country) MarshalGQL ¶
func (*Country) UnmarshalGQL ¶
type Exercise ¶
type Exercise struct {
Category ExerciseType `json:"category"`
}
type ExerciseType ¶
type ExerciseType string
const ( ExerciseTypeCalisthenics ExerciseType = "CALISTHENICS" ExerciseTypeHiking ExerciseType = "HIKING" ExerciseTypeSport ExerciseType = "SPORT" ExerciseTypeStrengthTraining ExerciseType = "STRENGTH_TRAINING" )
func (ExerciseType) IsValid ¶
func (e ExerciseType) IsValid() bool
func (ExerciseType) MarshalGQL ¶
func (e ExerciseType) MarshalGQL(w io.Writer)
func (ExerciseType) String ¶
func (e ExerciseType) String() string
func (*ExerciseType) UnmarshalGQL ¶
func (e *ExerciseType) UnmarshalGQL(v interface{}) error
type Experience ¶
type Experience interface { IsExperience() GetYearsOfExperience() float64 }
type Flying ¶
type Flying struct { PlaneModels []string `json:"planeModels"` YearsOfExperience float64 `json:"yearsOfExperience"` }
func (Flying) GetYearsOfExperience ¶
func (Flying) IsExperience ¶
func (Flying) IsExperience()
type GameGenre ¶
type GameGenre string
const ( GameGenreAdventure GameGenre = "ADVENTURE" GameGenreBoard GameGenre = "BOARD" GameGenreFps GameGenre = "FPS" GameGenreCard GameGenre = "CARD" GameGenreRpg GameGenre = "RPG" GameGenreRoguelite GameGenre = "ROGUELITE" GameGenreSimulation GameGenre = "SIMULATION" GameGenreStrategy GameGenre = "STRATEGY" )
func (GameGenre) MarshalGQL ¶
func (*GameGenre) UnmarshalGQL ¶
type Gaming ¶
type Gaming struct { Genres []GameGenre `json:"genres"` Name string `json:"name"` YearsOfExperience float64 `json:"yearsOfExperience"` }
func (Gaming) GetYearsOfExperience ¶
func (Gaming) IsExperience ¶
func (Gaming) IsExperience()
type Programming ¶
type Programming struct {
Languages []ProgrammingLanguage `json:"languages"`
}
func (Programming) IsHobby ¶
func (Programming) IsHobby()
type ProgrammingLanguage ¶
type ProgrammingLanguage string
const ( ProgrammingLanguageCsharp ProgrammingLanguage = "CSHARP" ProgrammingLanguageGo ProgrammingLanguage = "GO" ProgrammingLanguageRust ProgrammingLanguage = "RUST" ProgrammingLanguageTypescript ProgrammingLanguage = "TYPESCRIPT" )
func (ProgrammingLanguage) IsValid ¶
func (e ProgrammingLanguage) IsValid() bool
func (ProgrammingLanguage) MarshalGQL ¶
func (e ProgrammingLanguage) MarshalGQL(w io.Writer)
func (ProgrammingLanguage) String ¶
func (e ProgrammingLanguage) String() string
func (*ProgrammingLanguage) UnmarshalGQL ¶
func (e *ProgrammingLanguage) UnmarshalGQL(v interface{}) error
type Travelling ¶
type Travelling struct {
CountriesLived []Country `json:"countriesLived"`
}
func (Travelling) IsHobby ¶
func (Travelling) IsHobby()
Click to show internal directories.
Click to hide internal directories.