update
CI / GCC 16 / C++26 / sanitizers (push) Failing after 4s
CI / GCC 16 / C++26 / werror (push) Failing after 3s
CI / GCC 16 / C++26 / default (push) Failing after 1m48s

Signed-off-by: faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2026-07-25 23:42:52 +03:00
1 parent 3851aeb703
commit 053ee5b296
23 files changed
+845 -93

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
# Short URL service
Void::ShortUrl::IShortener is a provider-neutral ABI-v1 service for creating
short URLs and, when supported, resolving their keys. It has no dependency on
Echoion or any specific HTTP provider.
Implementations derive from IShortener and can be registered directly in a
Void::Service::ServiceRegistry. Plugin implementations export the standard
void_plugin_service(void*) symbol and are bound with
Void::Service::PluginServiceBinding<Void::ShortUrl::IShortener>.
The versioned contract lives in Void::ShortUrl::V1; aliases in Void::ShortUrl
select the current ABI. Implementations report a provider identifier and health
status. An empty custom key asks the provider to generate one, and an expiry of
zero means permanent.
Keep the returned shared pointer for the complete operation. That pin guarantees
the implementation and its shared object remain alive during plugin reload.
resolve() intentionally defaults to not_supported, which permits providers
backed by external APIs that cannot reverse a short link.
V1 is frozen: enum ordinals, data-member order, and virtual method order must
not change after release. Incompatible evolution is introduced as V2 with a
new service interface. Because the ABI carries C++ standard-library values,
host and provider must use the same C++ runtime and the exact toolchain
contract recorded by the application release.
A provider must either honor a non-empty custom key and non-zero expiry or
return unsupported/conflict; silently ignoring either request is invalid.