{"id":18363418,"url":"https://github.com/stuttgart-things/homerun-library","last_synced_at":"2025-07-30T00:36:48.581Z","repository":{"id":258565263,"uuid":"874170414","full_name":"stuttgart-things/homerun-library","owner":"stuttgart-things","description":"library for homerun","archived":false,"fork":false,"pushed_at":"2025-07-28T03:09:16.000Z","size":126,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-28T05:23:01.145Z","etag":null,"topics":["alerting","golang","homerun","notifications","webhooks"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stuttgart-things.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2024-10-17T11:22:22.000Z","updated_at":"2025-02-22T11:34:35.000Z","dependencies_parsed_at":"2025-04-01T19:38:37.427Z","dependency_job_id":"9119f2f0-0cd2-476b-882d-fdeea99554d8","html_url":"https://github.com/stuttgart-things/homerun-library","commit_stats":null,"previous_names":["stuttgart-things/homerun-library"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/stuttgart-things/homerun-library","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Fhomerun-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Fhomerun-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Fhomerun-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Fhomerun-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stuttgart-things","download_url":"https://codeload.github.com/stuttgart-things/homerun-library/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Fhomerun-library/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267468540,"owners_count":24092334,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["alerting","golang","homerun","notifications","webhooks"],"created_at":"2024-11-05T23:06:27.306Z","updated_at":"2025-07-30T00:36:48.557Z","avatar_url":"https://github.com/stuttgart-things.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stuttgart-things/homerun-library\n\nlibrary module for shared use for homerun microservice family.\n\n## USAGE\n\n\u003cdetails\u003e\u003csummary\u003eUSE SEND FUNC\u003c/summary\u003e\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"time\"\n\thomerun \"github.com/stuttgart-things/homerun-library\"\n)\n\nvar (\n\tdestination = \"https://homerun.homerun-dev.example.com/generic\"\n\ttoken       = \"\"\n\tinsecure    = true\n\tdt          = time.Now()\n)\n\nfunc main() {\n\n\t// CREATE THE MESSAGE STRUCTURE\n\tmessageBody := homerun.Message{\n\t\tTitle:           \"Test\",\n\t\tMessage:         \"Test message\",\n\t\tSeverity:        \"INFO\",\n\t\tAuthor:          \"elvis\",\n\t\tTimestamp:       dt.Format(\"01-02-2006 15:04:05\"),\n\t\tSystem:          \"golang\",\n\t\tTags:            \"golang,tests\",\n\t\tAssigneeAddress: \"\",\n\t\tAssigneeName:    \"\",\n\t\tArtifacts:       \"\",\n\t\tUrl:             \"\",\n\t}\n\n\t// RENDER THE MESSAGE BODY\n\trendered := homerun.RenderBody(homerun.HomeRunBodyData, messageBody)\n\tfmt.Println(rendered)\n\n\t// SEND THE MESSAGE\n\tanswer, resp := homerun.SendToHomerun(destination, token, []byte(rendered), insecure)\n\n\t// PRINT THE ANSWER\n\tfmt.Println(\"ANSWER STATUS: \", resp.Status)\n\tfmt.Println(\"ANSWER BODY: \", string(answer))\n}\n```\n\n\u003c/details\u003e\n\n## DEV-TASKS\n\n```bash\ntask: Available tasks for this project:\n* branch:        Create branch from main\n* check:         Run pre-commit hooks\n* commit:        Commit + push code into branch\n* lint:          Lint Golang\n* pr:            Create pull request into main\n* release:       Push new version\n* tag:           Commit, push \u0026 tag the module\n* test:          Test code\n```\n\n## AUTHORS\n\n```bash\nSina Schlatter, stuttgart-things 12/2024\nPatrick Hermann, stuttgart-things 10/2024\n```\n\n## License\n\nLicensed under the Apache License, Version 2.0 (the \"License\").\n\nYou may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0).\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an _\"AS IS\"_ basis, without WARRANTIES or conditions of any kind, either express or implied.\n\nSee the License for the specific language governing permissions and limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuttgart-things%2Fhomerun-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstuttgart-things%2Fhomerun-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuttgart-things%2Fhomerun-library/lists"}