model

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

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

Go to latest
Published: Dec 20, 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 Consultancy

type Consultancy struct {
	Upc  string      `json:"upc"`
	Name ProductName `json:"name"`
}

func (Consultancy) IsEntity

func (Consultancy) IsEntity()

func (Consultancy) IsProducts

func (Consultancy) IsProducts()

type Cosmo

type Cosmo struct {
	Upc           string      `json:"upc"`
	Name          ProductName `json:"name"`
	RepositoryURL string      `json:"repositoryURL"`
}

func (Cosmo) IsEntity

func (Cosmo) IsEntity()

func (Cosmo) IsProducts

func (Cosmo) IsProducts()

type DirectiveFact

type DirectiveFact struct {
	Title       string             `json:"title"`
	Description string             `json:"description"`
	FactType    *TopSecretFactType `json:"factType,omitempty"`
}

func (DirectiveFact) GetDescription

func (this DirectiveFact) GetDescription() string

func (DirectiveFact) GetFactType

func (this DirectiveFact) GetFactType() *TopSecretFactType

func (DirectiveFact) IsTopSecretFact

func (DirectiveFact) IsTopSecretFact()

type Documentation

type Documentation struct {
	URL  string   `json:"url"`
	Urls []string `json:"urls"`
}

func (Documentation) IsProducts

func (Documentation) IsProducts()

type Employee

type Employee struct {
	ID       int           `json:"id"`
	Products []ProductName `json:"products"`
	Notes    *string       `json:"notes,omitempty"`
}

func (Employee) IsEntity

func (Employee) IsEntity()

type EntityFact

type EntityFact struct {
	Title       string             `json:"title"`
	Description string             `json:"description"`
	FactType    *TopSecretFactType `json:"factType,omitempty"`
}

func (EntityFact) GetDescription

func (this EntityFact) GetDescription() string

func (EntityFact) GetFactType

func (this EntityFact) GetFactType() *TopSecretFactType

func (EntityFact) IsTopSecretFact

func (EntityFact) IsTopSecretFact()

type MiscellaneousFact

type MiscellaneousFact struct {
	Title       string             `json:"title"`
	Description string             `json:"description"`
	FactType    *TopSecretFactType `json:"factType,omitempty"`
}

func (MiscellaneousFact) GetDescription

func (this MiscellaneousFact) GetDescription() string

func (MiscellaneousFact) GetFactType

func (this MiscellaneousFact) GetFactType() *TopSecretFactType

func (MiscellaneousFact) IsTopSecretFact

func (MiscellaneousFact) IsTopSecretFact()

type Mutation

type Mutation struct {
}

type ProductName

type ProductName string
const (
	ProductNameConsultancy    ProductName = "CONSULTANCY"
	ProductNameCosmo          ProductName = "COSMO"
	ProductNameEngine         ProductName = "ENGINE"
	ProductNameFinance        ProductName = "FINANCE"
	ProductNameHumanResources ProductName = "HUMAN_RESOURCES"
	ProductNameMarketing      ProductName = "MARKETING"
	ProductNameSdk            ProductName = "SDK"
)

func (ProductName) IsValid

func (e ProductName) IsValid() bool

func (ProductName) MarshalGQL

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

func (ProductName) String

func (e ProductName) String() string

func (*ProductName) UnmarshalGQL

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

type Products

type Products interface {
	IsProducts()
}

type Queries

type Queries struct {
}

type TopSecretFact

type TopSecretFact interface {
	IsTopSecretFact()
	GetDescription() string
	GetFactType() *TopSecretFactType
}

type TopSecretFactInput

type TopSecretFactInput struct {
	Title       string            `json:"title"`
	Description string            `json:"description"`
	FactType    TopSecretFactType `json:"factType"`
}

type TopSecretFactType

type TopSecretFactType string
const (
	TopSecretFactTypeDirective     TopSecretFactType = "DIRECTIVE"
	TopSecretFactTypeEntity        TopSecretFactType = "ENTITY"
	TopSecretFactTypeMiscellaneous TopSecretFactType = "MISCELLANEOUS"
)

func (TopSecretFactType) IsValid

func (e TopSecretFactType) IsValid() bool

func (TopSecretFactType) MarshalGQL

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

func (TopSecretFactType) String

func (e TopSecretFactType) String() string

func (*TopSecretFactType) UnmarshalGQL

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

Jump to

Keyboard shortcuts

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