* feat(backend): added ff mock * feat(backend): added feature flag pg method * fix(backend): fixed ff request field * feat(backend): added multivariant support * feat(backend): added logic handler for feature flag filters * fix(backend): correct sql request for multivariants flags * feat(backend): added new fields to sessionStart response * feat(backend): removed unused fields from getFeatureFlags request * fix(backend): removed comments * feat(backend): added debug logs * feat(backend): added single type case for arrayToNum parser * feat(backend): added unit tests for feature flags
39 lines
1.4 KiB
Go
39 lines
1.4 KiB
Go
package router
|
|
|
|
type StartSessionRequest struct {
|
|
Token string `json:"token"`
|
|
UserUUID *string `json:"userUUID"`
|
|
RevID string `json:"revID"`
|
|
Timestamp int64 `json:"timestamp"`
|
|
TrackerVersion string `json:"trackerVersion"`
|
|
IsSnippet bool `json:"isSnippet"`
|
|
DeviceMemory uint64 `json:"deviceMemory"`
|
|
JsHeapSizeLimit uint64 `json:"jsHeapSizeLimit"`
|
|
ProjectKey *string `json:"projectKey"`
|
|
Reset bool `json:"reset"`
|
|
UserID string `json:"userID"`
|
|
}
|
|
|
|
type StartSessionResponse struct {
|
|
Timestamp int64 `json:"timestamp"`
|
|
StartTimestamp int64 `json:"startTimestamp"`
|
|
Delay int64 `json:"delay"`
|
|
Token string `json:"token"`
|
|
UserUUID string `json:"userUUID"`
|
|
UserOS string `json:"userOS"`
|
|
UserDevice string `json:"userDevice"`
|
|
UserBrowser string `json:"userBrowser"`
|
|
UserCountry string `json:"userCountry"`
|
|
UserState string `json:"userState"`
|
|
UserCity string `json:"userCity"`
|
|
SessionID string `json:"sessionID"`
|
|
ProjectID string `json:"projectID"`
|
|
BeaconSizeLimit int64 `json:"beaconSizeLimit"`
|
|
CompressionThreshold int64 `json:"compressionThreshold"`
|
|
}
|
|
|
|
type NotStartedRequest struct {
|
|
ProjectKey *string `json:"projectKey"`
|
|
TrackerVersion string `json:"trackerVersion"`
|
|
DoNotTrack bool `json:"DoNotTrack"`
|
|
}
|