{"id":19288536,"url":"https://github.com/samber/go-quickwit","last_synced_at":"2025-04-22T04:33:39.478Z","repository":{"id":237535550,"uuid":"794668046","full_name":"samber/go-quickwit","owner":"samber","description":"🍱 A Go ingestion client for Quickwit","archived":false,"fork":false,"pushed_at":"2024-06-04T09:15:50.000Z","size":25,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-04T10:33:37.892Z","etag":null,"topics":["analytics","cloud","go","ingestion","log","quickwit","s3","search","storage","tracing"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/samber/go-quickwit","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samber.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["samber"]}},"created_at":"2024-05-01T17:44:49.000Z","updated_at":"2024-06-04T10:33:41.816Z","dependencies_parsed_at":null,"dependency_job_id":"71dfc94a-e7a8-42a5-a5ab-3df6b99f98f3","html_url":"https://github.com/samber/go-quickwit","commit_stats":null,"previous_names":["samber/go-quickwit"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samber%2Fgo-quickwit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samber%2Fgo-quickwit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samber%2Fgo-quickwit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samber%2Fgo-quickwit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samber","download_url":"https://codeload.github.com/samber/go-quickwit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223888365,"owners_count":17220083,"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":["analytics","cloud","go","ingestion","log","quickwit","s3","search","storage","tracing"],"created_at":"2024-11-09T22:09:20.221Z","updated_at":"2024-11-09T22:09:20.897Z","avatar_url":"https://github.com/samber.png","language":"Go","readme":"\n# A Go ingestion client for Quickwit\n\n[![tag](https://img.shields.io/github/tag/samber/go-quickwit.svg)](https://github.com/samber/go-quickwit/releases)\n![Go Version](https://img.shields.io/badge/Go-%3E%3D%201.18.0-%23007d9c)\n[![GoDoc](https://godoc.org/github.com/samber/go-quickwit?status.svg)](https://pkg.go.dev/github.com/samber/go-quickwit)\n![Build Status](https://github.com/samber/go-quickwit/actions/workflows/test.yml/badge.svg)\n[![Go report](https://goreportcard.com/badge/github.com/samber/go-quickwit)](https://goreportcard.com/report/github.com/samber/go-quickwit)\n[![Coverage](https://img.shields.io/codecov/c/github/samber/go-quickwit)](https://codecov.io/gh/samber/go-quickwit)\n[![Contributors](https://img.shields.io/github/contributors/samber/go-quickwit)](https://github.com/samber/go-quickwit/graphs/contributors)\n[![License](https://img.shields.io/github/license/samber/go-quickwit)](./LICENSE)\n\nA [Quickwit](https://quickwit.io/) push client for Go. See [slog-quickwit](https://github.com/samber/slog-quickwit/) for a slog handler implementation.\n\nIf you're looking for a search library or Quickwit management interface, check the [official library](https://github.com/quickwit-oss/quickwit-go).\n\n## 🚀 Install\n\n```sh\ngo get github.com/samber/go-quickwit\n```\n\nThis library is v0 and follows SemVer strictly. Some breaking changes might be made to exported APIs before v1.0.0.\n\n## 💡 Spec\n\nGoDoc: [https://pkg.go.dev/github.com/samber/go-quickwit](https://pkg.go.dev/github.com/samber/go-quickwit)\n\n```go\ntype Config struct {\n\tURL    string\n\tClient http.Client\n\n\tIndexID string\n\n\tBatchWait  time.Duration\n\tBatchBytes int\n\tCommit     CommitMode   // either quickwit.Auto, quickwit.WaitFor or quickwit.Force\n\n\tBackoffConfig BackoffConfig\n\tTimeout       time.Duration\n}\n\ntype BackoffConfig struct {\n\t// start backoff at this level\n\tMinBackoff time.Duration\n\t// increase exponentially to this level\n\tMaxBackoff time.Duration\n\t// give up after this many; zero means infinite retries\n\tMaxRetries int\n}\n```\n\n## Example\n\nFirst, start Quickwit:\n\n```bash\ndocker-compose up -d\ncurl -X POST \\\n    'http://localhost:7280/api/v1/indexes' \\\n    -H 'Content-Type: application/yaml' \\\n    --data-binary @test-config.yaml\n```\n\nThen push logs:\n\n```go\nimport \"github.com/samber/go-quickwit\"\n\nfunc main() {\n\tclient := quickwit.NewWithDefault(\"http://localhost:7280\", \"my-index\")\n\tdefer client.Stop() // flush and stop\n\n\tfor i := 0; i \u003c 10; i++ {\n\t\tclient.Push(map[string]any{\n\t\t\t\"timestamp\": time.Now().Unix(),\n\t\t\t\"message\":   fmt.Sprintf(\"hello %d\", i),\n\t\t})\n\t\ttime.Sleep(1 * time.Second)\n\t}\n}\n```\n\n## 🤝 Contributing\n\n- Ping me on Twitter [@samuelberthe](https://twitter.com/samuelberthe) (DMs, mentions, whatever :))\n- Fork the [project](https://github.com/samber/go-quickwit)\n- Fix [open issues](https://github.com/samber/go-quickwit/issues) or request new features\n\nDon't hesitate ;)\n\n```bash\n# start quickwit\ndocker-compose up -d\ncurl -X POST \\\n    'http://localhost:7280/api/v1/indexes' \\\n    -H 'Content-Type: application/yaml' \\\n    --data-binary @test-config.yaml\n\n# Install some dev dependencies\nmake tools\n\n# Run tests\nmake test\n# or\nmake watch-test\n```\n\n## 👤 Contributors\n\n![Contributors](https://contrib.rocks/image?repo=samber/go-quickwit)\n\n## 💫 Show your support\n\nGive a ⭐️ if this project helped you!\n\n[![GitHub Sponsors](https://img.shields.io/github/sponsors/samber?style=for-the-badge)](https://github.com/sponsors/samber)\n\n## 📝 License\n\nCopyright © 2024 [Samuel Berthe](https://github.com/samber).\n\nThis project is [MIT](./LICENSE) licensed.\n","funding_links":["https://github.com/sponsors/samber"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamber%2Fgo-quickwit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamber%2Fgo-quickwit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamber%2Fgo-quickwit/lists"}