MCPcopy Create free account
hub / github.com/clrxbl/blockgametracker / platformFor

Function platformFor

internal/queue/encode.go:10–19  ·  view source on GitHub ↗
(edition string)

Source from the content-addressed store, hash-verified

8)
9
10func 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.
22func EncodeBatch(source string, results []ping.Result) []byte {

Callers 1

EncodeBatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected