ParseEventSummary handles the version detection and dispatching logic. Consumers (like the Delivery Worker) should use this instead of raw json.Unmarshal.
(data []byte, v SummaryVisitor)
| 305 | MDNDocs []DocLink `json:"mdn_docs,omitempty"` |
| 306 | } |
| 307 | |
| 308 | type BaselineStatus string |
| 309 | |
| 310 | const ( |
| 311 | BaselineStatusLimited BaselineStatus = "limited" |
| 312 | BaselineStatusNewly BaselineStatus = "newly" |
| 313 | BaselineStatusWidely BaselineStatus = "widely" |
| 314 | BaselineStatusUnknown BaselineStatus = "unknown" |
| 315 | ) |
| 316 | |
| 317 | type BaselineValue struct { |
| 318 | Status BaselineStatus `json:"status"` |
| 319 | LowDate *time.Time `json:"low_date,omitempty"` |
| 320 | HighDate *time.Time `json:"high_date,omitempty"` |
| 321 | } |
| 322 | |
| 323 | type BrowserStatus string |
| 324 | |
| 325 | const ( |
| 326 | BrowserStatusAvailable BrowserStatus = "available" |
| 327 | BrowserStatusUnavailable BrowserStatus = "unavailable" |
| 328 | BrowserStatusUnknown BrowserStatus = "" |
| 329 | ) |
| 330 | |
| 331 | type BrowserValue struct { |