Documentation ¶
Index ¶
- func GetNestedPreloads(ctx *graphql.OperationContext, fields []graphql.CollectedField, parent string) []string
- func GetPreloads(ctx context.Context) []string
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- type ComplexityRoot
- type Config
- type DirectiveRoot
- type QueryResolver
- type Resolver
- type ResolverRoot
- type SignalAggregationsResolver
- type SignalCollectionResolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNestedPreloads ¶
func GetNestedPreloads(ctx *graphql.OperationContext, fields []graphql.CollectedField, parent string) []string
func GetPreloads ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type ComplexityRoot ¶
type ComplexityRoot struct { Query struct { Signals func(childComplexity int, tokenID int, from time.Time, to time.Time) int SignalsLatest func(childComplexity int, tokenID int) int } SignalAggregations struct { ChassisAxleRow1WheelLeftTirePressure func(childComplexity int, agg model.FloatAggregation) int ChassisAxleRow1WheelRightTirePressure func(childComplexity int, agg model.FloatAggregation) int ChassisAxleRow2WheelLeftTirePressure func(childComplexity int, agg model.FloatAggregation) int ChassisAxleRow2WheelRightTirePressure func(childComplexity int, agg model.FloatAggregation) int CurrentLocationAltitude func(childComplexity int, agg model.FloatAggregation) int CurrentLocationLatitude func(childComplexity int, agg model.FloatAggregation) int CurrentLocationLongitude func(childComplexity int, agg model.FloatAggregation) int CurrentLocationTimestamp func(childComplexity int, agg model.StringAggregation) int DIMOAftermarketHdop func(childComplexity int, agg model.FloatAggregation) int DIMOAftermarketNsat func(childComplexity int, agg model.FloatAggregation) int DIMOAftermarketSsid func(childComplexity int, agg model.StringAggregation) int DIMOAftermarketWPAState func(childComplexity int, agg model.StringAggregation) int ExteriorAirTemperature func(childComplexity int, agg model.FloatAggregation) int LowVoltageBatteryCurrentVoltage func(childComplexity int, agg model.FloatAggregation) int OBDBarometricPressure func(childComplexity int, agg model.FloatAggregation) int OBDEngineLoad func(childComplexity int, agg model.FloatAggregation) int OBDIntakeTemp func(childComplexity int, agg model.FloatAggregation) int OBDRunTime func(childComplexity int, agg model.FloatAggregation) int PowertrainCombustionEngineEct func(childComplexity int, agg model.FloatAggregation) int PowertrainCombustionEngineEngineOilLevel func(childComplexity int, agg model.StringAggregation) int PowertrainCombustionEngineMaf func(childComplexity int, agg model.FloatAggregation) int PowertrainCombustionEngineSpeed func(childComplexity int, agg model.FloatAggregation) int PowertrainCombustionEngineTps func(childComplexity int, agg model.FloatAggregation) int PowertrainFuelSystemAbsoluteLevel func(childComplexity int, agg model.FloatAggregation) int PowertrainFuelSystemSupportedFuelTypes func(childComplexity int, agg model.StringAggregation) int PowertrainRange func(childComplexity int, agg model.FloatAggregation) int PowertrainTractionBatteryChargingChargeLimit func(childComplexity int, agg model.FloatAggregation) int PowertrainTractionBatteryChargingIsCharging func(childComplexity int, agg model.StringAggregation) int PowertrainTractionBatteryGrossCapacity func(childComplexity int, agg model.FloatAggregation) int PowertrainTractionBatteryStateOfChargeCurrent func(childComplexity int, agg model.FloatAggregation) int PowertrainTransmissionTravelledDistance func(childComplexity int, agg model.FloatAggregation) int PowertrainType func(childComplexity int, agg model.StringAggregation) int Speed func(childComplexity int, agg model.FloatAggregation) int TokenID func(childComplexity int) int VehicleIdentificationBrand func(childComplexity int, agg model.StringAggregation) int VehicleIdentificationModel func(childComplexity int, agg model.StringAggregation) int VehicleIdentificationYear func(childComplexity int, agg model.FloatAggregation) int } SignalCollection struct { ChassisAxleRow1WheelLeftTirePressure func(childComplexity int) int ChassisAxleRow1WheelRightTirePressure func(childComplexity int) int ChassisAxleRow2WheelLeftTirePressure func(childComplexity int) int ChassisAxleRow2WheelRightTirePressure func(childComplexity int) int CurrentLocationAltitude func(childComplexity int) int CurrentLocationLatitude func(childComplexity int) int CurrentLocationLongitude func(childComplexity int) int CurrentLocationTimestamp func(childComplexity int) int DIMOAftermarketHdop func(childComplexity int) int DIMOAftermarketNsat func(childComplexity int) int DIMOAftermarketSsid func(childComplexity int) int DIMOAftermarketWPAState func(childComplexity int) int ExteriorAirTemperature func(childComplexity int) int LowVoltageBatteryCurrentVoltage func(childComplexity int) int OBDBarometricPressure func(childComplexity int) int OBDEngineLoad func(childComplexity int) int OBDIntakeTemp func(childComplexity int) int OBDRunTime func(childComplexity int) int PowertrainCombustionEngineEct func(childComplexity int) int PowertrainCombustionEngineEngineOilLevel func(childComplexity int) int PowertrainCombustionEngineMaf func(childComplexity int) int PowertrainCombustionEngineSpeed func(childComplexity int) int PowertrainCombustionEngineTps func(childComplexity int) int PowertrainFuelSystemAbsoluteLevel func(childComplexity int) int PowertrainFuelSystemSupportedFuelTypes func(childComplexity int) int PowertrainRange func(childComplexity int) int PowertrainTractionBatteryChargingChargeLimit func(childComplexity int) int PowertrainTractionBatteryChargingIsCharging func(childComplexity int) int PowertrainTractionBatteryGrossCapacity func(childComplexity int) int PowertrainTractionBatteryStateOfChargeCurrent func(childComplexity int) int PowertrainTransmissionTravelledDistance func(childComplexity int) int PowertrainType func(childComplexity int) int Speed func(childComplexity int) int TokenID func(childComplexity int) int VehicleIdentificationBrand func(childComplexity int) int VehicleIdentificationModel func(childComplexity int) int VehicleIdentificationYear func(childComplexity int) int } SignalFloat struct { Timestamp func(childComplexity int) int Value func(childComplexity int) int } SignalString struct { Timestamp func(childComplexity int) int Value func(childComplexity int) int } }
type Config ¶
type Config struct { Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type QueryResolver ¶
type Resolver ¶
type Resolver struct {
*repositories.Repository
}
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
Query returns QueryResolver implementation.
func (*Resolver) SignalAggregations ¶
func (r *Resolver) SignalAggregations() SignalAggregationsResolver
SignalAggregations returns SignalAggregationsResolver implementation.
func (*Resolver) SignalCollection ¶
func (r *Resolver) SignalCollection() SignalCollectionResolver
SignalCollection returns SignalCollectionResolver implementation.
type ResolverRoot ¶
type ResolverRoot interface { Query() QueryResolver SignalAggregations() SignalAggregationsResolver SignalCollection() SignalCollectionResolver }
type SignalAggregationsResolver ¶
type SignalAggregationsResolver interface { ChassisAxleRow1WheelLeftTirePressure(ctx context.Context, obj *model.SignalsWithID, agg model.FloatAggregation) ([]*model.SignalFloat, error) ChassisAxleRow1WheelRightTirePressure(ctx context.Context, obj *model.SignalsWithID, agg model.FloatAggregation) ([]*model.SignalFloat, error) ChassisAxleRow2WheelLeftTirePressure(ctx context.Context, obj *model.SignalsWithID, agg model.FloatAggregation) ([]*model.SignalFloat, error) ChassisAxleRow2WheelRightTirePressure(ctx context.Context, obj *model.SignalsWithID, agg model.FloatAggregation) ([]*model.SignalFloat, error) CurrentLocationAltitude(ctx context.Context, obj *model.SignalsWithID, agg model.FloatAggregation) ([]*model.SignalFloat, error) CurrentLocationLatitude(ctx context.Context, obj *model.SignalsWithID, agg model.FloatAggregation) ([]*model.SignalFloat, error) CurrentLocationLongitude(ctx context.Context, obj *model.SignalsWithID, agg model.FloatAggregation) ([]*model.SignalFloat, error) CurrentLocationTimestamp(ctx context.Context, obj *model.SignalsWithID, agg model.StringAggregation) ([]*model.SignalString, error) DIMOAftermarketHdop(ctx context.Context, obj *model.SignalsWithID, agg model.FloatAggregation) ([]*model.SignalFloat, error) DIMOAftermarketNsat(ctx context.Context, obj *model.SignalsWithID, agg model.FloatAggregation) ([]*model.SignalFloat, error) DIMOAftermarketSsid(ctx context.Context, obj *model.SignalsWithID, agg model.StringAggregation) ([]*model.SignalString, error) DIMOAftermarketWPAState(ctx context.Context, obj *model.SignalsWithID, agg model.StringAggregation) ([]*model.SignalString, error) ExteriorAirTemperature(ctx context.Context, obj *model.SignalsWithID, agg model.FloatAggregation) ([]*model.SignalFloat, error) LowVoltageBatteryCurrentVoltage(ctx context.Context, obj *model.SignalsWithID, agg model.FloatAggregation) ([]*model.SignalFloat, error) OBDBarometricPressure(ctx context.Context, obj *model.SignalsWithID, agg model.FloatAggregation) ([]*model.SignalFloat, error) OBDEngineLoad(ctx context.Context, obj *model.SignalsWithID, agg model.FloatAggregation) ([]*model.SignalFloat, error) OBDIntakeTemp(ctx context.Context, obj *model.SignalsWithID, agg model.FloatAggregation) ([]*model.SignalFloat, error) OBDRunTime(ctx context.Context, obj *model.SignalsWithID, agg model.FloatAggregation) ([]*model.SignalFloat, error) PowertrainCombustionEngineEct(ctx context.Context, obj *model.SignalsWithID, agg model.FloatAggregation) ([]*model.SignalFloat, error) PowertrainCombustionEngineEngineOilLevel(ctx context.Context, obj *model.SignalsWithID, agg model.StringAggregation) ([]*model.SignalString, error) PowertrainCombustionEngineMaf(ctx context.Context, obj *model.SignalsWithID, agg model.FloatAggregation) ([]*model.SignalFloat, error) PowertrainCombustionEngineSpeed(ctx context.Context, obj *model.SignalsWithID, agg model.FloatAggregation) ([]*model.SignalFloat, error) PowertrainCombustionEngineTps(ctx context.Context, obj *model.SignalsWithID, agg model.FloatAggregation) ([]*model.SignalFloat, error) PowertrainFuelSystemAbsoluteLevel(ctx context.Context, obj *model.SignalsWithID, agg model.FloatAggregation) ([]*model.SignalFloat, error) PowertrainFuelSystemSupportedFuelTypes(ctx context.Context, obj *model.SignalsWithID, agg model.StringAggregation) ([]*model.SignalString, error) PowertrainRange(ctx context.Context, obj *model.SignalsWithID, agg model.FloatAggregation) ([]*model.SignalFloat, error) PowertrainTractionBatteryChargingChargeLimit(ctx context.Context, obj *model.SignalsWithID, agg model.FloatAggregation) ([]*model.SignalFloat, error) PowertrainTractionBatteryChargingIsCharging(ctx context.Context, obj *model.SignalsWithID, agg model.StringAggregation) ([]*model.SignalString, error) PowertrainTractionBatteryGrossCapacity(ctx context.Context, obj *model.SignalsWithID, agg model.FloatAggregation) ([]*model.SignalFloat, error) PowertrainTractionBatteryStateOfChargeCurrent(ctx context.Context, obj *model.SignalsWithID, agg model.FloatAggregation) ([]*model.SignalFloat, error) PowertrainTransmissionTravelledDistance(ctx context.Context, obj *model.SignalsWithID, agg model.FloatAggregation) ([]*model.SignalFloat, error) PowertrainType(ctx context.Context, obj *model.SignalsWithID, agg model.StringAggregation) ([]*model.SignalString, error) Speed(ctx context.Context, obj *model.SignalsWithID, agg model.FloatAggregation) ([]*model.SignalFloat, error) VehicleIdentificationBrand(ctx context.Context, obj *model.SignalsWithID, agg model.StringAggregation) ([]*model.SignalString, error) VehicleIdentificationModel(ctx context.Context, obj *model.SignalsWithID, agg model.StringAggregation) ([]*model.SignalString, error) VehicleIdentificationYear(ctx context.Context, obj *model.SignalsWithID, agg model.FloatAggregation) ([]*model.SignalFloat, error) }
type SignalCollectionResolver ¶
type SignalCollectionResolver interface { ChassisAxleRow1WheelLeftTirePressure(ctx context.Context, obj *model.SignalsWithID) (*model.SignalFloat, error) ChassisAxleRow1WheelRightTirePressure(ctx context.Context, obj *model.SignalsWithID) (*model.SignalFloat, error) ChassisAxleRow2WheelLeftTirePressure(ctx context.Context, obj *model.SignalsWithID) (*model.SignalFloat, error) ChassisAxleRow2WheelRightTirePressure(ctx context.Context, obj *model.SignalsWithID) (*model.SignalFloat, error) CurrentLocationAltitude(ctx context.Context, obj *model.SignalsWithID) (*model.SignalFloat, error) CurrentLocationLatitude(ctx context.Context, obj *model.SignalsWithID) (*model.SignalFloat, error) CurrentLocationLongitude(ctx context.Context, obj *model.SignalsWithID) (*model.SignalFloat, error) CurrentLocationTimestamp(ctx context.Context, obj *model.SignalsWithID) (*model.SignalString, error) DIMOAftermarketHdop(ctx context.Context, obj *model.SignalsWithID) (*model.SignalFloat, error) DIMOAftermarketNsat(ctx context.Context, obj *model.SignalsWithID) (*model.SignalFloat, error) DIMOAftermarketSsid(ctx context.Context, obj *model.SignalsWithID) (*model.SignalString, error) DIMOAftermarketWPAState(ctx context.Context, obj *model.SignalsWithID) (*model.SignalString, error) ExteriorAirTemperature(ctx context.Context, obj *model.SignalsWithID) (*model.SignalFloat, error) LowVoltageBatteryCurrentVoltage(ctx context.Context, obj *model.SignalsWithID) (*model.SignalFloat, error) OBDBarometricPressure(ctx context.Context, obj *model.SignalsWithID) (*model.SignalFloat, error) OBDEngineLoad(ctx context.Context, obj *model.SignalsWithID) (*model.SignalFloat, error) OBDIntakeTemp(ctx context.Context, obj *model.SignalsWithID) (*model.SignalFloat, error) OBDRunTime(ctx context.Context, obj *model.SignalsWithID) (*model.SignalFloat, error) PowertrainCombustionEngineEct(ctx context.Context, obj *model.SignalsWithID) (*model.SignalFloat, error) PowertrainCombustionEngineEngineOilLevel(ctx context.Context, obj *model.SignalsWithID) (*model.SignalString, error) PowertrainCombustionEngineMaf(ctx context.Context, obj *model.SignalsWithID) (*model.SignalFloat, error) PowertrainCombustionEngineSpeed(ctx context.Context, obj *model.SignalsWithID) (*model.SignalFloat, error) PowertrainCombustionEngineTps(ctx context.Context, obj *model.SignalsWithID) (*model.SignalFloat, error) PowertrainFuelSystemAbsoluteLevel(ctx context.Context, obj *model.SignalsWithID) (*model.SignalFloat, error) PowertrainFuelSystemSupportedFuelTypes(ctx context.Context, obj *model.SignalsWithID) (*model.SignalString, error) PowertrainRange(ctx context.Context, obj *model.SignalsWithID) (*model.SignalFloat, error) PowertrainTractionBatteryChargingChargeLimit(ctx context.Context, obj *model.SignalsWithID) (*model.SignalFloat, error) PowertrainTractionBatteryChargingIsCharging(ctx context.Context, obj *model.SignalsWithID) (*model.SignalString, error) PowertrainTractionBatteryGrossCapacity(ctx context.Context, obj *model.SignalsWithID) (*model.SignalFloat, error) PowertrainTractionBatteryStateOfChargeCurrent(ctx context.Context, obj *model.SignalsWithID) (*model.SignalFloat, error) PowertrainTransmissionTravelledDistance(ctx context.Context, obj *model.SignalsWithID) (*model.SignalFloat, error) PowertrainType(ctx context.Context, obj *model.SignalsWithID) (*model.SignalString, error) Speed(ctx context.Context, obj *model.SignalsWithID) (*model.SignalFloat, error) VehicleIdentificationBrand(ctx context.Context, obj *model.SignalsWithID) (*model.SignalString, error) VehicleIdentificationModel(ctx context.Context, obj *model.SignalsWithID) (*model.SignalString, error) VehicleIdentificationYear(ctx context.Context, obj *model.SignalsWithID) (*model.SignalFloat, error) }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.