(edition string)
| 8 | ) |
| 9 | |
| 10 | func platformFor(edition string) pb.Platform { |
| 11 | switch edition { |
| 12 | case ping.EditionJava: |
| 13 | return pb.Platformjava |
| 14 | case ping.EditionBedrock: |
| 15 | return pb.Platformbedrock |
| 16 | default: |
| 17 | return pb.Platformunknown |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | // EncodeBatch builds a flatbuffers PingBatch root containing the given results. |
| 22 | func EncodeBatch(source string, results []ping.Result) []byte { |