edsm-uploader

A platform independent uploader of Elite Dangerous journal files to EDSM
git clone git://archive.git.mtrnord.blog/MTRNord/edsm-uploader.git
Log | Files | Refs | LICENSE

dataTypes.go (1012B)


      1 package datatypes
      2 
      3 // The journal has some standard fields on each line that are common. Timestamp and Event. The rest of the fields are specific to the event.
      4 // Example line: `{ "timestamp":"2024-03-09T10:49:40Z", "event":"Fileheader", "part":1, "language":"German/DE", "Odyssey":true, "gameversion":"4.0.0.1801", "build":"r300472/r0 " }`
      5 type JournalLine struct {
      6 	Timestamp string `json:"timestamp"`
      7 	Event     string `json:"event"`
      8 }
      9 
     10 // The fileheader is special and we need to parse it each time to make sure we know the right version.
     11 // Example header: `{ "timestamp":"2024-03-09T10:49:40Z", "event":"Fileheader", "part":1, "language":"German/DE", "Odyssey":true, "gameversion":"4.0.0.1801", "build":"r300472/r0 " }`
     12 type FileHeader struct {
     13 	Timestamp   string `json:"timestamp"`
     14 	Event       string `json:"event"`
     15 	Part        int    `json:"part"`
     16 	Language    string `json:"language"`
     17 	Odyssey     bool   `json:"Odyssey"`
     18 	GameVersion string `json:"gameversion"`
     19 	Build       string `json:"build"`
     20 }