26 lines
534 B
Go
26 lines
534 B
Go
package utils
|
|
|
|
import (
|
|
"math"
|
|
"time"
|
|
|
|
"github.com/fiskerinc/cloud-services/pkg/utils/envtool"
|
|
)
|
|
|
|
var (
|
|
//other cache constants
|
|
TripTimeout = time.Duration(envtool.GetEnvInt64("JETFIRE_TRIP_TIMEOUT_MS", 600000)) * time.Millisecond
|
|
|
|
EmptySignal = math.NaN()
|
|
|
|
//bitwise flags for state updates.
|
|
//Additional flags can be added for additional sink tables later on
|
|
FeatureUpdateFlag uint = 0x1
|
|
LatestUpdateFlag uint = 0x2
|
|
|
|
MaxVinLength = 20
|
|
MaxTimestampLength = 12
|
|
|
|
FeatureVarsDefaults = "default-feature-vars.json"
|
|
)
|