No description
  • Zig 89.7%
  • Nix 10.3%
Find a file
2026-10-17 16:47:51 +02:00
src feat: add simple cli functionality for testing sendMessage 2026-10-17 02:23:07 +02:00
.gitignore feat: add result to .gitignore 2026-10-17 03:10:16 +02:00
build.zig feat: setup zig2nix and bump zig version to 0.17 2026-10-17 03:57:10 +02:00
build.zig.zon feat: setup zig2nix and bump zig version to 0.17 2026-10-17 03:57:10 +02:00
build.zig.zon2json-lock feat: setup zig2nix and bump zig version to 0.17 2026-10-17 03:57:10 +02:00
flake.lock fix: remove unused nixpkgs from flake input 2026-10-17 16:47:51 +02:00
flake.nix fix: remove unused nixpkgs from flake input 2026-10-17 16:47:51 +02:00
README.md fix: remove app name from nix run command in readme 2026-10-17 03:59:25 +02:00

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>