flutter3d_hub 1.0.0-rc.1
flutter3d_hub: ^1.0.0-rc.1 copied to clipboard
The model hub's client contract for flutter3d: the reference format `<uuid>@<n>`, the refusals, the cache policy and the versioned server protocol. Plain Dart with no engine behind it.
1.0.0-rc.1 #
- New: the model hub's client contract, as a package of its own.
HubReferencereads the reference format<uuid>@<n>with an optional#sha256=checksum, fixed for good, through one function,parse, that refuses anything else with aHubReferenceFormatExceptionsaying what is wrong.HubRefusedExceptioncarries aHubRefusal(notFound,withdrawn,hashMismatch,offline,tooLarge,protocol), an open set.HubCachePolicysays where a model may come from and whether it is kept. - New: the server protocol as an interface.
HubProtocol.versionis1.0; every request carries it, every answer carries the server's own, andHubProtocol.greetandHubProtocol.resolverefuse a server of another major with a sentence.HubServeris the side a client calls, one request object per exchange. The exchanges' schemas areHubProtocol.endpoints, snapshotted inapi/flutter3d_hub.hub. No network code yet: the client is an addition on these types.