model

package
v0.0.0-...-23ce89c Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 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 struct {
	Key *CountryKey `json:"key"`
}

func (Country) IsEntity

func (Country) IsEntity()

type CountryKey

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

type Employee

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

func (Employee) IsEntity

func (Employee) IsEntity()

type Exercise

type Exercise struct {
	Employees []*Employee  `json:"employees"`
	Category  ExerciseType `json:"category"`
}

func (Exercise) GetEmployees

func (this Exercise) GetEmployees() []*Employee

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 {
	Employees         []*Employee `json:"employees"`
	PlaneModels       []string    `json:"planeModels"`
	YearsOfExperience float64     `json:"yearsOfExperience"`
}

func (Flying) GetEmployees

func (this Flying) GetEmployees() []*Employee

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 {
	Employees         []*Employee `json:"employees"`
	Genres            []GameGenre `json:"genres"`
	Name              string      `json:"name"`
	YearsOfExperience float64     `json:"yearsOfExperience"`
}

func (Gaming) GetEmployees

func (this Gaming) GetEmployees() []*Employee

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()
	GetEmployees() []*Employee
}

type Other

type Other struct {
	Employees []*Employee `json:"employees"`
	Name      string      `json:"name"`
}

func (Other) GetEmployees

func (this Other) GetEmployees() []*Employee

func (Other) IsHobby

func (Other) IsHobby()

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 Query

type Query struct {
}

type Sdk

type Sdk struct {
	Upc             string                `json:"upc"`
	ClientLanguages []ProgrammingLanguage `json:"clientLanguages"`
}

func (Sdk) IsEntity

func (Sdk) IsEntity()

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

Jump to

Keyboard shortcuts

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