Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 struct {
Key *CountryKey `json:"key"`
}
type CountryKey ¶
type CountryKey struct {
Name string `json:"name"`
}
type Exercise ¶
type Exercise struct { Employees []*Employee `json:"employees"` Category ExerciseType `json:"category"` }
func (Exercise) GetEmployees ¶
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 { Employees []*Employee `json:"employees"` PlaneModels []string `json:"planeModels"` YearsOfExperience float64 `json:"yearsOfExperience"` }
func (Flying) GetEmployees ¶
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 { Employees []*Employee `json:"employees"` Genres []GameGenre `json:"genres"` Name string `json:"name"` YearsOfExperience float64 `json:"yearsOfExperience"` }
func (Gaming) GetEmployees ¶
func (Gaming) GetYearsOfExperience ¶
func (Gaming) IsExperience ¶
func (Gaming) IsExperience()
type Other ¶
func (Other) GetEmployees ¶
type Programming ¶
type Programming struct { Employees []*Employee `json:"employees"` Languages []ProgrammingLanguage `json:"languages"` }
func (Programming) GetEmployees ¶
func (this Programming) GetEmployees() []*Employee
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 Sdk ¶
type Sdk struct { Upc string `json:"upc"` ClientLanguages []ProgrammingLanguage `json:"clientLanguages"` }
type Subscription ¶
type Subscription struct { }
type Travelling ¶
type Travelling struct { Employees []*Employee `json:"employees"` CountriesLived []*Country `json:"countriesLived"` }
func (Travelling) GetEmployees ¶
func (this Travelling) GetEmployees() []*Employee
func (Travelling) IsHobby ¶
func (Travelling) IsHobby()
Click to show internal directories.
Click to hide internal directories.