// MeasurementRepeatInterval bounds equal retained measurement repeats.
MeasurementRepeatInterval = 5 * time.Minute
+
// OnlineRepeatInterval bounds equal online availability repeats.
OnlineRepeatInterval = 5 * time.Minute
+
// DeviceContactTimeout bounds the age of device contact evidence.
DeviceContactTimeout = 15 * time.Minute
)
return nil, fmt.Errorf("encode payload: %w", err)
}
- envelope := Envelope{Schema: Schema, Metadata: metadata, Payload: encoded}
+ envelope := Envelope{
+ Schema: Schema,
+ Metadata: metadata,
+ Payload: encoded,
+ }
err = validateEnvelope(envelope)
if err != nil {
return nil, fmt.Errorf("validate envelope: %w", err)