Documentation ¶
Index ¶
- Variables
- type City
- type Consultancy
- type Cosmo
- type Country
- type CountryKey
- type Department
- type Details
- type Employee
- type Engineer
- type EngineerType
- type ErrorWrapper
- type IProduct
- type Identifiable
- type Marketer
- type Mood
- type Mutation
- type OperationType
- type Operator
- type Products
- type Query
- type RoleType
- type Sdk
- type Subscription
- type Time
Constants ¶
This section is empty.
Variables ¶
View Source
var AllDepartment = []Department{ DepartmentEngineering, DepartmentMarketing, DepartmentOperations, }
View Source
var AllEngineerType = []EngineerType{ EngineerTypeBackend, EngineerTypeFrontend, EngineerTypeFullstack, }
View Source
var AllMood = []Mood{ MoodHappy, MoodSad, }
View Source
var AllOperationType = []OperationType{ OperationTypeFinance, OperationTypeHumanResources, }
Functions ¶
This section is empty.
Types ¶
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 (Cosmo) IsIProduct ¶
func (Cosmo) IsIProduct()
func (Cosmo) IsProducts ¶
func (Cosmo) IsProducts()
type Country ¶
type Country struct {
Key *CountryKey `json:"key"`
}
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 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) 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 (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 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 (Marketer) IsRoleType ¶
func (Marketer) IsRoleType()
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 (Operator) IsRoleType ¶
func (Operator) IsRoleType()
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 (Sdk) IsIProduct ¶
func (Sdk) IsIProduct()
func (Sdk) IsProducts ¶
func (Sdk) IsProducts()
type Subscription ¶
type Subscription struct { }
Click to show internal directories.
Click to hide internal directories.