github.com/GeniusesGroup/libgo@v0.0.0-20220929090155-5ff932cb408e/protocol/os.go (about) 1 /* For license and copyright information please see LEGAL file in repository */ 2 3 package protocol 4 5 // OS is default global protocol.OperatingSystem 6 // You must assign to it by any object implement protocol.OperatingSystem on your main.go file 7 // Strongly suggest assign easily by `import _ "./libgo/os"` 8 var OS OperatingSystem 9 10 // OperatingSystem is the interface that must implement by any OS object 11 type OperatingSystem interface { 12 AppManifest() ApplicationManifest 13 14 RegisterNetworkTransportMultiplexer(tMux NetworkTransportMultiplexer) 15 16 Storage() StorageBlock 17 18 MediaTypes 19 CompressTypes 20 }