{"id":23508771,"url":"https://github.com/lovasko/libcoat","last_synced_at":"2025-05-13T15:34:56.949Z","repository":{"id":78820996,"uuid":"71004427","full_name":"lovasko/libcoat","owner":"lovasko","description":"GoatSwim C89 Client Library","archived":false,"fork":false,"pushed_at":"2016-12-05T18:07:42.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T19:48:24.870Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lovasko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-15T18:00:58.000Z","updated_at":"2016-11-30T03:37:43.000Z","dependencies_parsed_at":"2023-05-03T14:48:09.817Z","dependency_job_id":null,"html_url":"https://github.com/lovasko/libcoat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasko%2Flibcoat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasko%2Flibcoat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasko%2Flibcoat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasko%2Flibcoat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lovasko","download_url":"https://codeload.github.com/lovasko/libcoat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253970763,"owners_count":21992563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-25T11:32:06.175Z","updated_at":"2025-05-13T15:34:56.900Z","avatar_url":"https://github.com/lovasko.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libcoat\nThe `libcoat` a client-side library for the\n[GoatSwim](https://github.com/lovasko/goat) time series database.\n\n## Features\n* fully C89/POSIX2001 compatible\n* API contains only 4 functions\n* optional buffering to reduce the number of `write` calls\n* optional custom memory management\n* no loops used (guaranteed non-blocking flow)\n\n## Example\nThe following [example](examples/load.c) will collect the system load over\nthe last minute and write it to the disk in a GoatSwim raw format:\n\n```c\n#include \u003cstdlib.h\u003e\n#include \u003cunistd.h\u003e\n#include \u003ccoat.h\u003e\n\nint\nmain(void)\n{\n  coat c;\n  double avg;\n\n  coat_open(\u0026c, \"load.gs\", NULL, 0);\n\n  while (1) {\n    getloadavg(\u0026avg, 1);\n    coat_write(\u0026c, (float)avg);\n    sleep(60);\n  }\n\n  return EXIT_SUCCESS;\n}\n```\n\n## Build \u0026 install\n```\n$ make\n$ make install\n```\n\n## License\nThe `libcoat` library is licensed under the [2-clause BSD\nlicense](LICENSE). In case, for any reason, you need a different license,\nfeel free to contact the author.\n\n## Author\nDaniel Lovasko \u003cdaniel.lovasko@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovasko%2Flibcoat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flovasko%2Flibcoat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovasko%2Flibcoat/lists"}