Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllFloatAggregationType = []FloatAggregationType{ FloatAggregationTypeAvg, FloatAggregationTypeMed, FloatAggregationTypeMax, FloatAggregationTypeMin, FloatAggregationTypeRand, }
View Source
var AllPrivilege = []Privilege{ PrivilegeVehicleNonLocationData, PrivilegeVehicleCommands, PrivilegeVehicleCurrentLocation, PrivilegeVehicleAllTimeLocation, PrivilegeVehicleVinCredential, }
View Source
var AllStringAggregationType = []StringAggregationType{ StringAggregationTypeRand, StringAggregationTypeTop, StringAggregationTypeUnique, }
Functions ¶
This section is empty.
Types ¶
type FloatAggregation ¶
type FloatAggregation struct { // Aggregation type. Type FloatAggregationType `json:"type"` // interval is a time span that used for aggregatting the data with. // A duration string is a sequence of decimal numbers, each with optional fraction and a unit suffix, // such as "300ms", "-1.5h" or "2h45m". Valid time units are "ms", "s", "m", "h", "d", "w", "y". Interval string `json:"interval"` }
type FloatAggregationType ¶
type FloatAggregationType string
const ( FloatAggregationTypeAvg FloatAggregationType = "avg" FloatAggregationTypeMed FloatAggregationType = "med" FloatAggregationTypeMax FloatAggregationType = "max" FloatAggregationTypeMin FloatAggregationType = "min" FloatAggregationTypeRand FloatAggregationType = "rand" )
func (FloatAggregationType) IsValid ¶
func (e FloatAggregationType) IsValid() bool
func (FloatAggregationType) MarshalGQL ¶
func (e FloatAggregationType) MarshalGQL(w io.Writer)
func (FloatAggregationType) String ¶
func (e FloatAggregationType) String() string
func (*FloatAggregationType) UnmarshalGQL ¶
func (e *FloatAggregationType) UnmarshalGQL(v interface{}) error
type Privilege ¶
type Privilege string
const ( PrivilegeVehicleNonLocationData Privilege = "VehicleNonLocationData" PrivilegeVehicleCommands Privilege = "VehicleCommands" PrivilegeVehicleCurrentLocation Privilege = "VehicleCurrentLocation" PrivilegeVehicleAllTimeLocation Privilege = "VehicleAllTimeLocation" PrivilegeVehicleVinCredential Privilege = "VehicleVinCredential" )
func (Privilege) MarshalGQL ¶
func (*Privilege) UnmarshalGQL ¶
type SignalFloat ¶
type SignalString ¶
type SignalsWithID ¶
type SignalsWithID struct {
TokenID uint32 `json:"tokenID"`
}
SignalWithID is the collection of signals. This struct is used to force the generation of the SignalCollection, and SignalAggregations resolver.
type StringAggregation ¶
type StringAggregation struct { // Aggregation type. Type StringAggregationType `json:"type"` // interval is a time span that used for aggregatting the data with. // A duration string is a sequence of decimal numbers, each with optional fraction and a unit suffix, // such as "300ms", "-1.5h" or "2h45m". Valid time units are "ms", "s", "m", "h", "d", "w", "y". Interval string `json:"interval"` }
type StringAggregationType ¶
type StringAggregationType string
const ( // Randomly select a value from the group. StringAggregationTypeRand StringAggregationType = "rand" // Select the most frequently occurring value in the group. StringAggregationTypeTop StringAggregationType = "top" // Return a list of unique values in the group. StringAggregationTypeUnique StringAggregationType = "unique" )
func (StringAggregationType) IsValid ¶
func (e StringAggregationType) IsValid() bool
func (StringAggregationType) MarshalGQL ¶
func (e StringAggregationType) MarshalGQL(w io.Writer)
func (StringAggregationType) String ¶
func (e StringAggregationType) String() string
func (*StringAggregationType) UnmarshalGQL ¶
func (e *StringAggregationType) UnmarshalGQL(v interface{}) error
Click to show internal directories.
Click to hide internal directories.