{"id":18324133,"url":"https://github.com/manveru/logjam-go","last_synced_at":"2025-04-09T15:14:13.342Z","repository":{"id":66305581,"uuid":"146604004","full_name":"manveru/logjam-go","owner":"manveru","description":"Go implementation of a logjam client","archived":false,"fork":false,"pushed_at":"2018-10-16T17:08:04.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T15:14:10.479Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/manveru.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-08-29T13:28:20.000Z","updated_at":"2020-05-06T06:17:24.000Z","dependencies_parsed_at":"2023-02-20T21:00:41.313Z","dependency_job_id":null,"html_url":"https://github.com/manveru/logjam-go","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/manveru%2Flogjam-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manveru%2Flogjam-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manveru%2Flogjam-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manveru%2Flogjam-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manveru","download_url":"https://codeload.github.com/manveru/logjam-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248055275,"owners_count":21040157,"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-11-05T18:32:12.750Z","updated_at":"2025-04-09T15:14:13.322Z","avatar_url":"https://github.com/manveru.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# logjam-go\n\nPlease see the public repo at github.com/xing/logjam-go\n\n\n## How to use it\nInstal via `go get github.com/xing/logjam-go` and then inside your code create a middleware like this:\n\n```go\nfunc logjamMiddleware(next http.Handler) http.Handler {\n\treturn logjam.NewMiddleware(next, \u0026logjam.Options{\n\t\tAppName: \"MyApp\",\n\t\tEnvName: \"production\",\n\t\tLogger:  log.New(os.Stderr, \"API\", log.LstdFlags),\n\t})\n}\n```\n\nThen register the middleware with your router like this:\n\n```go\n    r := mux.NewRouter()\n    ...\n    r.Use(logjamMiddleware)\n    ...\n```\n\nThis example uses the Gorilla Mux package but it should also work with other router packages.\n\nYou also need to set environment variable to point to the actual logjam broker instance:\n\n`export LOGJAM_BROKER=my-logjam-broker.host.name`\n\n## Hot to contribute?\nPlease fork the repo and create a pull-request for us to merge.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanveru%2Flogjam-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanveru%2Flogjam-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanveru%2Flogjam-go/lists"}