model

package
v0.0.0-...-3fc25f8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllMood = []Mood{
	MoodHappy,
	MoodSad,
}

Functions

This section is empty.

Types

type City

type City struct {
	Type    string   `json:"type"`
	Name    string   `json:"name"`
	Country *Country `json:"country,omitempty"`
}

type Consultancy

type Consultancy struct {
	Upc             string    `json:"upc"`
	Lead            *Employee `json:"lead"`
	IsLeadAvailable *bool     `json:"isLeadAvailable,omitempty"`
}

func (Consultancy) IsEntity

func (Consultancy) IsEntity()

func (Consultancy) IsProducts

func (Consultancy) IsProducts()

type Cosmo

type Cosmo struct {
	Upc       string      `json:"upc"`
	Engineers []*Employee `json:"engineers"`
	Lead      *Employee   `json:"lead"`
}

func (Cosmo) GetEngineers

func (this Cosmo) GetEngineers() []*Employee

func (Cosmo) GetUpc

func (this Cosmo) GetUpc() string

func (Cosmo) IsEntity

func (Cosmo) IsEntity()

func (Cosmo) IsIProduct

func (Cosmo) IsIProduct()

func (Cosmo) IsProducts

func (Cosmo) IsProducts()

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 Department

type Department string
const (
	DepartmentEngineering Department = "ENGINEERING"
	DepartmentMarketing   Department = "MARKETING"
	DepartmentOperations  Department = "OPERATIONS"
)

func (Department) IsValid

func (e Department) IsValid() bool

func (Department) MarshalGQL

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

func (Department) String

func (e Department) String() string

func (*Department) UnmarshalGQL

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

type Details

type Details struct {
	Forename      string   `json:"forename"`
	Location      *Country `json:"location"`
	Surname       string   `json:"surname"`
	PastLocations []*City  `json:"pastLocations"`
}

type Employee

type Employee struct {
	Details               *Details      `json:"details"`
	ID                    int           `json:"id"`
	Tag                   string        `json:"tag"`
	Role                  RoleType      `json:"role"`
	Notes                 *string       `json:"notes,omitempty"`
	UpdatedAt             string        `json:"updatedAt"`
	StartDate             string        `json:"startDate"`
	CurrentMood           Mood          `json:"currentMood"`
	DerivedMood           Mood          `json:"derivedMood"`
	IsAvailable           bool          `json:"isAvailable"`
	RootFieldThrowsError  *string       `json:"rootFieldThrowsError,omitempty"`
	RootFieldErrorWrapper *ErrorWrapper `json:"rootFieldErrorWrapper,omitempty"`
}

func (Employee) GetID

func (this Employee) GetID() int

func (Employee) IsEntity

func (Employee) IsEntity()

func (Employee) IsIdentifiable

func (Employee) IsIdentifiable()

type Engineer

type Engineer struct {
	Departments  []Department `json:"departments"`
	Title        []string     `json:"title"`
	Employees    []*Employee  `json:"employees"`
	EngineerType EngineerType `json:"engineerType"`
}

func (Engineer) GetDepartments

func (this Engineer) GetDepartments() []Department

func (Engineer) GetEmployees

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

func (Engineer) GetTitle

func (this Engineer) GetTitle() []string

func (Engineer) IsRoleType

func (Engineer) IsRoleType()

type EngineerType

type EngineerType string
const (
	EngineerTypeBackend   EngineerType = "BACKEND"
	EngineerTypeFrontend  EngineerType = "FRONTEND"
	EngineerTypeFullstack EngineerType = "FULLSTACK"
)

func (EngineerType) IsValid

func (e EngineerType) IsValid() bool

func (EngineerType) MarshalGQL

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

func (EngineerType) String

func (e EngineerType) String() string

func (*EngineerType) UnmarshalGQL

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

type ErrorWrapper

type ErrorWrapper struct {
	OkField    *string `json:"okField,omitempty"`
	ErrorField *string `json:"errorField,omitempty"`
}

type IProduct

type IProduct interface {
	IsIProduct()
	GetUpc() string
	GetEngineers() []*Employee
}

type Identifiable

type Identifiable interface {
	IsIdentifiable()
	GetID() int
}

type Marketer

type Marketer struct {
	Departments []Department `json:"departments"`
	Title       []string     `json:"title"`
	Employees   []*Employee  `json:"employees"`
}

func (Marketer) GetDepartments

func (this Marketer) GetDepartments() []Department

func (Marketer) GetEmployees

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

func (Marketer) GetTitle

func (this Marketer) GetTitle() []string

func (Marketer) IsRoleType

func (Marketer) IsRoleType()

type Mood

type Mood string
const (
	MoodHappy Mood = "HAPPY"
	MoodSad   Mood = "SAD"
)

func (Mood) IsValid

func (e Mood) IsValid() bool

func (Mood) MarshalGQL

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

func (Mood) String

func (e Mood) String() string

func (*Mood) UnmarshalGQL

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

type Mutation

type Mutation struct {
}

type OperationType

type OperationType string
const (
	OperationTypeFinance        OperationType = "FINANCE"
	OperationTypeHumanResources OperationType = "HUMAN_RESOURCES"
)

func (OperationType) IsValid

func (e OperationType) IsValid() bool

func (OperationType) MarshalGQL

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

func (OperationType) String

func (e OperationType) String() string

func (*OperationType) UnmarshalGQL

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

type Operator

type Operator struct {
	Departments  []Department    `json:"departments"`
	Title        []string        `json:"title"`
	Employees    []*Employee     `json:"employees"`
	OperatorType []OperationType `json:"operatorType"`
}

func (Operator) GetDepartments

func (this Operator) GetDepartments() []Department

func (Operator) GetEmployees

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

func (Operator) GetTitle

func (this Operator) GetTitle() []string

func (Operator) IsRoleType

func (Operator) IsRoleType()

type Products

type Products interface {
	IsProducts()
}

type Query

type Query struct {
}

type RoleType

type RoleType interface {
	IsRoleType()
	GetDepartments() []Department
	GetTitle() []string
	GetEmployees() []*Employee
}

type Sdk

type Sdk struct {
	Upc       string      `json:"upc"`
	Engineers []*Employee `json:"engineers"`
	Owner     *Employee   `json:"owner"`
	Unicode   string      `json:"unicode"`
}

func (Sdk) GetEngineers

func (this Sdk) GetEngineers() []*Employee

func (Sdk) GetUpc

func (this Sdk) GetUpc() string

func (Sdk) IsEntity

func (Sdk) IsEntity()

func (Sdk) IsIProduct

func (Sdk) IsIProduct()

func (Sdk) IsProducts

func (Sdk) IsProducts()

type Subscription

type Subscription struct {
}

type Time

type Time struct {
	UnixTime  int    `json:"unixTime"`
	TimeStamp string `json:"timeStamp"`
}

Jump to

Keyboard shortcuts

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