feat: first init

- Simple unix daemon
- Python, Go, and C client
This commit is contained in:
darwincereska
2026-04-13 22:34:27 -04:00
commit 4a0aabce43
22 changed files with 3527 additions and 0 deletions
Executable
BIN
View File
Binary file not shown.
+13
View File
@@ -0,0 +1,13 @@
#include "../clients/c/chipper_client.h"
int main(void) {
if (chipper_client_init("/tmp/chipper.sock", "myapp", "worker") != 0) {
return 1;
}
chipper_client_log("info", "hello from C client, user_id=%d", 42);
chipper_client_log("error", "something failed: %s", "oops");
chipper_client_close();
return 0;
}
+14
View File
@@ -0,0 +1,14 @@
package main
import "github.com/log-chipper/chipper"
func main() {
client, err := chipper.NewClient()
if err != nil {
panic(err)
}
defer client.Close()
client.Log("info", "hello from go")
}
+8
View File
@@ -0,0 +1,8 @@
from ..clients.python.chipper_client import *
if __name__ == "__main__":
c: ChipperClient = ChipperClient(service="python_example", source="example")
c.log("info", "hello from python example")
c.log("error", "something failed")
c.close()