model

package
v0.0.0-...-1962235 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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) IsValid

func (e Country) IsValid() bool

func (Country) MarshalGQL

func (e Country) MarshalGQL(w io.Writer)

func (Country) String

func (e Country) String() string

func (*Country) UnmarshalGQL

func (e *Country) UnmarshalGQL(v interface{}) error

type Employee

type Employee struct {
	ID      int     `json:"id"`
	Hobbies []Hobby `json:"hobbies"`
}

func (Employee) IsEntity

func (Employee) IsEntity()

type Exercise

type Exercise struct {
	Category ExerciseType `json:"category"`
}

func (Exercise) IsHobby

func (Exercise) IsHobby()

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 (this Flying) GetYearsOfExperience() float64

func (Flying) IsExperience

func (Flying) IsExperience()

func (Flying) IsHobby

func (Flying) IsHobby()

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) IsValid

func (e GameGenre) IsValid() bool

func (GameGenre) MarshalGQL

func (e GameGenre) MarshalGQL(w io.Writer)

func (GameGenre) String

func (e GameGenre) String() string

func (*GameGenre) UnmarshalGQL

func (e *GameGenre) UnmarshalGQL(v interface{}) error

type Gaming

type Gaming struct {
	Genres            []GameGenre `json:"genres"`
	Name              string      `json:"name"`
	YearsOfExperience float64     `json:"yearsOfExperience"`
}

func (Gaming) GetYearsOfExperience

func (this Gaming) GetYearsOfExperience() float64

func (Gaming) IsExperience

func (Gaming) IsExperience()

func (Gaming) IsHobby

func (Gaming) IsHobby()

type Hobby

type Hobby interface {
	IsHobby()
}

type Other

type Other struct {
	Name string `json:"name"`
}

func (Other) IsHobby

func (Other) IsHobby()

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()

Jump to

Keyboard shortcuts

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