Something went wrong. Try again.
A Zig client library for the Healthchecks.io ping API, for signaling that a scheduled job started, finished, or failed.
Something went wrong. Try again.
555 B · 29 lines
Zig
at main
123456789101112131415161718192021222324252627282930// SPDX-FileCopyrightText: © 2026 Jeffrey C. Ollie <jeff@ocjtech.us>//// SPDX-License-Identifier: MIT
const Check = @This();
const std = @import("std");const UUID = @import("uuid").UUID;
const Client = @import("Client.zig");const Run = @import("Run.zig");
client: *Client,id: UUID,
pub fn init(client: *Client, id: UUID) Check { return .{ .client = client, .id = id, };}
pub fn allocator(self: *Check) std.mem.Allocator { return self.client.allocator();}
pub fn run(self: *Check) Run { return .init(self);}