No description
- Zig 89.7%
- Nix 10.3%
| src | ||
| .gitignore | ||
| build.zig | ||
| build.zig.zon | ||
| build.zig.zon2json-lock | ||
| flake.lock | ||
| flake.nix | ||
| README.md | ||
et-phone-home
Small library to simply integrate support for pulsing service-uptime-center from Zig apps.
usage
const eph = @import("et_phone_home");
try eph.sendMessage(alloc, io, .{
.service_name = "<my service name>",
.api_endpoint = "<my endpoint>",
.auth_token = "<my auth token>",
});
// or with an already existing client
try eph.sendMessageWithOwnClient(alloc, &client, .{
.service_name = "<my service name>",
.api_endpoint = "<my endpoint>",
.auth_token = "<my auth token>",
});
testing with cli
zig build
zig-out/bin/et_phone_home <service-name> <api-endpoint> <auth-token>
# or
zig build run -- <service-name> <api-endpoint> <auth-token>
nix
nix build
result/bin/et_phone_home <service-name> <api-endpoint> <auth-token>
# or
nix run <service-name> <api-endpoint> <auth-token>