{"id":43200906,"url":"https://github.com/bitleak/go-lmstfy-client","last_synced_at":"2026-02-01T06:05:50.602Z","repository":{"id":52031827,"uuid":"360534292","full_name":"bitleak/go-lmstfy-client","owner":"bitleak","description":"Lmstfy client in Go","archived":false,"fork":false,"pushed_at":"2021-05-10T13:25:26.000Z","size":55,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T00:27:34.898Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitleak.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}},"created_at":"2021-04-22T13:45:15.000Z","updated_at":"2021-05-10T13:25:29.000Z","dependencies_parsed_at":"2022-08-20T00:40:24.542Z","dependency_job_id":null,"html_url":"https://github.com/bitleak/go-lmstfy-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bitleak/go-lmstfy-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitleak%2Fgo-lmstfy-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitleak%2Fgo-lmstfy-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitleak%2Fgo-lmstfy-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitleak%2Fgo-lmstfy-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitleak","download_url":"https://codeload.github.com/bitleak/go-lmstfy-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitleak%2Fgo-lmstfy-client/sbom","scorecard":{"id":240343,"data":{"date":"2025-08-11","repo":{"name":"github.com/bitleak/go-lmstfy-client","commit":"6ea62f90d15b1581db3bf59a3dc2cca59ee21bf2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":2,"reason":"Found 2/9 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/bitleak/go-lmstfy-client/ci.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/bitleak/go-lmstfy-client/ci.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/bitleak/go-lmstfy-client/ci.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yaml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/bitleak/go-lmstfy-client/ci.yaml/master?enable=pin","Warn: downloadThenRun not pinned by hash: .github/workflows/ci.yaml:44","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   1 downloadThenRun dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0493 / GHSA-p782-xgp4-8hr8","Warn: Project is vulnerable to: GO-2021-0113 / GHSA-ppp9-7jff-5vj2","Warn: Project is vulnerable to: GO-2022-1059 / GHSA-69ch-w2m2-3vjp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T06:35:39.606Z","repository_id":52031827,"created_at":"2025-08-17T06:35:39.606Z","updated_at":"2025-08-17T06:35:39.606Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28970194,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T05:48:53.985Z","status":"ssl_error","status_checked_at":"2026-02-01T05:47:55.855Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-02-01T06:05:49.623Z","updated_at":"2026-02-01T06:05:50.597Z","avatar_url":"https://github.com/bitleak.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Lmstfy Client ![github actions](https://github.com/bitleak/go-lmstfy-client/actions/workflows/ci.yaml/badge.svg) [![codecov](https://codecov.io/gh/bitleak/go-lmstfy-client/branch/master/graph/badge.svg?token=FXWN0ZN9ZJ)](https://codecov.io/gh/bitleak/go-lmstfy-client) [![Go Report Card](https://goreportcard.com/badge/github.com/bitleak/go-lmstfy-client)](https://goreportcard.com/report/github.com/bitleak/go-lmstfy-client) [![GitHub release date](https://img.shields.io/github/release-date/bitleak/go-lmstfy-client.svg)](https://github.com/bitleak/go-lmstfy-client/releases) [![LICENSE](https://img.shields.io/github/license/bitleak/go-lmstfy-client.svg)](https://github.com/bitleak/go-lmstfy-client/blob/master/LICENSE) [![GoDoc](https://img.shields.io/badge/Godoc-reference-blue.svg)](https://godoc.org/github.com/bitleak/go-lmstfy-client/client)\n\n\n## Usage\n\n### Setup Lmstfy\n\nAs simple as:\n\n```shell\n$ make setup\n```\nit would run the Redis server and lmstfy using docker-compose, and create the new namespace `test-ns` \nwith token `01F4CKPFY8XYVH6WVEQB3747CW`.\n\n### Producer Example\n\n```go\nimport (\n\t\"fmt\"\n\t\"github.com/bitleak/go-lmstfy-client/client\"\n\t\"os\"\n)\n\nfunc main() {\n\n\tc := client.NewLmstfyClient(\"127.0.0.1\", 7777, \"test-ns\", \"01F4CKPFY8XYVH6WVEQB3747CW\")\n\t// Optional, config the client to retry when some errors happened. retry 3 times with 50ms interval\n\tc.ConfigRetry(3, 50)\n\n\t// Publish a job with ttl==forever, tries==3, delay==1s\n\tjobID, err := c.Publish(\"test-queue\", []byte(\"hello\"), 0, 3, 1)\n\tif err != nil {\n\t\tfmt.Printf(\"Failed to publish the new job, err: %s\\n\", jobID)\n\t\tos.Exit(1)\n\t}\n\tfmt.Printf(\"Published the new job with id: %s\\n\", jobID)\n}\n```\n\n[examples/producer](https://github.com/bitleak/go-lmstfy-client/tree/master/examples/producer/main.go) \n\n### Consumer Example\n\n```go\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"os\"\n\t\"os/signal\"\n\t\"syscall\"\n\n\t\"github.com/bitleak/go-lmstfy-client/client\"\n)\n\nfunc registerSignal(shutdownFn func()) {\n\tc := make(chan os.Signal, 1)\n\tsignal.Notify(c, []os.Signal{\n\t\tsyscall.SIGHUP,\n\t\tsyscall.SIGINT,\n\t\tsyscall.SIGTERM,\n\t}...)\n\tgo func() {\n\t\tfor range c {\n\t\t\tshutdownFn()\n\t\t\tos.Exit(0)\n\t\t}\n\t}()\n}\n\nfunc main() {\n\tconsumer := client.NewConsumer(\u0026client.ConsumerConfig{\n\t\tHost:      \"127.0.0.1\",\n\t\tPort:      7777,\n\t\tNamespace: \"test-ns\",\n\t\tToken:     \"01F4CKPFY8XYVH6WVEQB3747CW\",\n\t\tQueues:    []string{\"test-queue\"},\n\n\t\tThreads: 4, // how many polling threads which would affect the performance\n\t\tTTR: 30, // unit was second, determine when the job would be visible again\n\t})\n\n\tregisterSignal(func() {\n\t\tconsumer.Close()\n\t\tfmt.Println(\"Bye, Going to shutdown the consumer\")\n\t})\n\n\tfmt.Println(\"Hello, Going to consume jobs from queue\")\n\t_ = consumer.Receive(context.Background(), func(ctx context.Context, job *client.Job) {\n\t\tfmt.Printf(\"Got new job: %s\\n\", job.ID)\n\t\tif err := job.Ack(); err != nil {\n\t\t\tfmt.Printf(\"Failed to ack the job: %s, err: %s\\n\", job.ID, err.Error())\n\t\t}\n\t})\n}\n```\n[examples/consumer](https://github.com/bitleak/go-lmstfy-client/tree/master/examples/consumer/main.go) \n\nAPI documentation are available via [godoc](https://godoc.org/github.com/bitleak/go-lmstfy-client/client)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitleak%2Fgo-lmstfy-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitleak%2Fgo-lmstfy-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitleak%2Fgo-lmstfy-client/lists"}