model

package
v0.0.0-...-5f7e392 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Airport

type Airport struct {
	// IATA airport code
	ID string `json:"id"`
	// Airport literal name
	Name string `json:"name"`
	// List of available sensors for this airport
	Sensors []*Sensor `json:"sensors"`
	// Get a subset of sensors
	GetSubsetOfSensors []*Sensor `json:"getSubsetOfSensors"`
}

Represents an airport

func (Airport) IsNode

func (Airport) IsNode()

type FakeColor

type FakeColor struct {
	Red255   *int `json:"red255"`
	Green255 *int `json:"green255"`
	Blue255  *int `json:"blue255"`
}

type FakeImageSize

type FakeImageSize struct {
	Width  int `json:"width"`
	Height int `json:"height"`
}

type FakeLocale

type FakeLocale string
const (
	FakeLocaleAz        FakeLocale = "az"
	FakeLocaleCz        FakeLocale = "cz"
	FakeLocaleDe        FakeLocale = "de"
	FakeLocaleDeAt      FakeLocale = "de_AT"
	FakeLocaleDeCh      FakeLocale = "de_CH"
	FakeLocaleEn        FakeLocale = "en"
	FakeLocaleEnAu      FakeLocale = "en_AU"
	FakeLocaleEnBork    FakeLocale = "en_BORK"
	FakeLocaleEnCa      FakeLocale = "en_CA"
	FakeLocaleEnGb      FakeLocale = "en_GB"
	FakeLocaleEnIe      FakeLocale = "en_IE"
	FakeLocaleEnInd     FakeLocale = "en_IND"
	FakeLocaleEnUs      FakeLocale = "en_US"
	FakeLocaleEnAuOcker FakeLocale = "en_au_ocker"
	FakeLocaleEs        FakeLocale = "es"
	FakeLocaleEsMx      FakeLocale = "es_MX"
	FakeLocaleFa        FakeLocale = "fa"
	FakeLocaleFr        FakeLocale = "fr"
	FakeLocaleFrCa      FakeLocale = "fr_CA"
	FakeLocaleGe        FakeLocale = "ge"
	FakeLocaleIDID      FakeLocale = "id_ID"
	FakeLocaleIt        FakeLocale = "it"
	FakeLocaleJa        FakeLocale = "ja"
	FakeLocaleKo        FakeLocale = "ko"
	FakeLocaleNbNo      FakeLocale = "nb_NO"
	FakeLocaleNep       FakeLocale = "nep"
	FakeLocaleNl        FakeLocale = "nl"
	FakeLocalePl        FakeLocale = "pl"
	FakeLocalePtBr      FakeLocale = "pt_BR"
	FakeLocaleRu        FakeLocale = "ru"
	FakeLocaleSk        FakeLocale = "sk"
	FakeLocaleSv        FakeLocale = "sv"
	FakeLocaleTr        FakeLocale = "tr"
	FakeLocaleUk        FakeLocale = "uk"
	FakeLocaleVi        FakeLocale = "vi"
	FakeLocaleZhCn      FakeLocale = "zh_CN"
	FakeLocaleZhTw      FakeLocale = "zh_TW"
)

func (FakeLocale) IsValid

func (e FakeLocale) IsValid() bool

func (FakeLocale) MarshalGQL

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

func (FakeLocale) String

func (e FakeLocale) String() string

func (*FakeLocale) UnmarshalGQL

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

type FakeLoremSize

type FakeLoremSize string
const (
	FakeLoremSizeWord       FakeLoremSize = "word"
	FakeLoremSizeWords      FakeLoremSize = "words"
	FakeLoremSizeSentence   FakeLoremSize = "sentence"
	FakeLoremSizeSentences  FakeLoremSize = "sentences"
	FakeLoremSizeParagraph  FakeLoremSize = "paragraph"
	FakeLoremSizeParagraphs FakeLoremSize = "paragraphs"
)

func (FakeLoremSize) IsValid

func (e FakeLoremSize) IsValid() bool

func (FakeLoremSize) MarshalGQL

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

func (FakeLoremSize) String

func (e FakeLoremSize) String() string

func (*FakeLoremSize) UnmarshalGQL

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

type FakeOptions

type FakeOptions struct {
	UseFullAddress    *bool          `json:"useFullAddress"`
	MinMoney          *float64       `json:"minMoney"`
	MaxMoney          *float64       `json:"maxMoney"`
	DecimalPlaces     *int           `json:"decimalPlaces"`
	ImageSize         *FakeImageSize `json:"imageSize"`
	ImageKeywords     []string       `json:"imageKeywords"`
	RandomizeImageURL *bool          `json:"randomizeImageUrl"`
	EmailProvider     *string        `json:"emailProvider"`
	PasswordLength    *int           `json:"passwordLength"`
	LoremSize         *FakeLoremSize `json:"loremSize"`
	DateFormat        *string        `json:"dateFormat"`
	DateFrom          *string        `json:"dateFrom"`
	DateTo            *string        `json:"dateTo"`
	BaseColor         *FakeColor     `json:"baseColor"`
	MinNumber         *float64       `json:"minNumber"`
	MaxNumber         *float64       `json:"maxNumber"`
	PrecisionNumber   *float64       `json:"precisionNumber"`
}

type FakeTypes

type FakeTypes string
const (
	FakeTypesZipCode            FakeTypes = "zipCode"
	FakeTypesCity               FakeTypes = "city"
	FakeTypesStreetName         FakeTypes = "streetName"
	FakeTypesStreetAddress      FakeTypes = "streetAddress"
	FakeTypesSecondaryAddress   FakeTypes = "secondaryAddress"
	FakeTypesCounty             FakeTypes = "county"
	FakeTypesCountry            FakeTypes = "country"
	FakeTypesCountryCode        FakeTypes = "countryCode"
	FakeTypesState              FakeTypes = "state"
	FakeTypesStateAbbr          FakeTypes = "stateAbbr"
	FakeTypesLatitude           FakeTypes = "latitude"
	FakeTypesLongitude          FakeTypes = "longitude"
	FakeTypesColorName          FakeTypes = "colorName"
	FakeTypesProductCategory    FakeTypes = "productCategory"
	FakeTypesProductName        FakeTypes = "productName"
	FakeTypesMoney              FakeTypes = "money"
	FakeTypesProductMaterial    FakeTypes = "productMaterial"
	FakeTypesProduct            FakeTypes = "product"
	FakeTypesCompanyName        FakeTypes = "companyName"
	FakeTypesCompanyCatchPhrase FakeTypes = "companyCatchPhrase"
	FakeTypesCompanyBs          FakeTypes = "companyBS"
	FakeTypesDbColumn           FakeTypes = "dbColumn"
	FakeTypesDbType             FakeTypes = "dbType"
	FakeTypesDbCollation        FakeTypes = "dbCollation"
	FakeTypesDbEngine           FakeTypes = "dbEngine"
	// By default returns dates beetween 2000-01-01 and 2030-01-01.
	// Configure date format with options \`dateFormat\` \`dateFrom\` \`dateTo\`.
	FakeTypesDate                           FakeTypes = "date"
	FakeTypesPastDate                       FakeTypes = "pastDate"
	FakeTypesFutureDate                     FakeTypes = "futureDate"
	FakeTypesRecentDate                     FakeTypes = "recentDate"
	FakeTypesFinanceAccountName             FakeTypes = "financeAccountName"
	FakeTypesFinanceTransactionType         FakeTypes = "financeTransactionType"
	FakeTypesCurrencyCode                   FakeTypes = "currencyCode"
	FakeTypesCurrencyName                   FakeTypes = "currencyName"
	FakeTypesCurrencySymbol                 FakeTypes = "currencySymbol"
	FakeTypesBitcoinAddress                 FakeTypes = "bitcoinAddress"
	FakeTypesInternationalBankAccountNumber FakeTypes = "internationalBankAccountNumber"
	FakeTypesBankIdentifierCode             FakeTypes = "bankIdentifierCode"
	FakeTypesHackerAbbreviation             FakeTypes = "hackerAbbreviation"
	FakeTypesHackerPhrase                   FakeTypes = "hackerPhrase"
	FakeTypesImageURL                       FakeTypes = "imageUrl"
	FakeTypesAvatarURL                      FakeTypes = "avatarUrl"
	FakeTypesEmail                          FakeTypes = "email"
	FakeTypesURL                            FakeTypes = "url"
	FakeTypesDomainName                     FakeTypes = "domainName"
	FakeTypesIpv4Address                    FakeTypes = "ipv4Address"
	FakeTypesIpv6Address                    FakeTypes = "ipv6Address"
	FakeTypesUserAgent                      FakeTypes = "userAgent"
	FakeTypesColorHex                       FakeTypes = "colorHex"
	FakeTypesMacAddress                     FakeTypes = "macAddress"
	FakeTypesPassword                       FakeTypes = "password"
	FakeTypesLorem                          FakeTypes = "lorem"
	FakeTypesFirstName                      FakeTypes = "firstName"
	FakeTypesLastName                       FakeTypes = "lastName"
	FakeTypesFullName                       FakeTypes = "fullName"
	FakeTypesJobTitle                       FakeTypes = "jobTitle"
	FakeTypesPhoneNumber                    FakeTypes = "phoneNumber"
	FakeTypesNumber                         FakeTypes = "number"
	FakeTypesUUID                           FakeTypes = "uuid"
	FakeTypesWord                           FakeTypes = "word"
	FakeTypesWords                          FakeTypes = "words"
	FakeTypesLocale                         FakeTypes = "locale"
	FakeTypesFilename                       FakeTypes = "filename"
	FakeTypesMimeType                       FakeTypes = "mimeType"
	FakeTypesFileExtension                  FakeTypes = "fileExtension"
	FakeTypesSemver                         FakeTypes = "semver"
)

func (FakeTypes) IsValid

func (e FakeTypes) IsValid() bool

func (FakeTypes) MarshalGQL

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

func (FakeTypes) String

func (e FakeTypes) String() string

func (*FakeTypes) UnmarshalGQL

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

type MeanMeasureMode

type MeanMeasureMode string
const (
	// The value specified by discretize will divide in X MeasureMeanData specified by the duration
	MeanMeasureModeFluxDuration MeanMeasureMode = "FLUX_DURATION"
	// The value specified by discretize will divide in X MeasureMeanData for the whole interval
	MeanMeasureModeForInterval MeanMeasureMode = "FOR_INTERVAL"
)

func (MeanMeasureMode) IsValid

func (e MeanMeasureMode) IsValid() bool

func (MeanMeasureMode) MarshalGQL

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

func (MeanMeasureMode) String

func (e MeanMeasureMode) String() string

func (*MeanMeasureMode) UnmarshalGQL

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

type MeasureMeanData

type MeasureMeanData struct {
	// Measure id
	ID string `json:"id"`
	// Sensor used to capture this measure
	Sensor *Sensor `json:"sensor"`
	// Measure airport location
	Airport *Airport `json:"airport"`
	// Measure value
	Value float64 `json:"value"`
	// Start date of mean calculation
	StartDate time.Time `json:"startDate"`
	// End date of mean calculation
	EndDate time.Time `json:"endDate"`
}

func (MeasureMeanData) IsNode

func (MeasureMeanData) IsNode()

type Measurement

type Measurement struct {
	// Measurement id
	ID string `json:"id"`
	// Measurement name
	Name string `json:"name"`
	// Measurement unit
	Unit string `json:"unit"`
}

func (Measurement) IsNode

func (Measurement) IsNode()

type Node

type Node interface {
	IsNode()
}

type Sensor

type Sensor struct {
	// Sensor id
	ID string `json:"id"`
	// Sensor's airport
	Airport *Airport `json:"airport"`
	// Type of measurement that provides this sensor
	Measurement *Measurement `json:"measurement"`
	// Get a serie of mean measures for this sensor
	GetMeanMeasureInterval []*MeasureMeanData `json:"getMeanMeasureInterval"`
	// Get mean measures for a specific day, for this sensor.
	GetMeanMeasures []*MeasureMeanData `json:"getMeanMeasures"`
}

func (Sensor) IsNode

func (Sensor) IsNode()

Jump to

Keyboard shortcuts

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