{"id":19188768,"url":"https://github.com/miquido/revolt-sdk-go","last_synced_at":"2026-06-11T16:32:26.280Z","repository":{"id":57568904,"uuid":"154143776","full_name":"miquido/revolt-sdk-go","owner":"miquido","description":"The project was made by Miquido. https://www.miquido.com/","archived":false,"fork":false,"pushed_at":"2018-10-24T12:14:00.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T03:42:19.825Z","etag":null,"topics":[],"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/miquido.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":"2018-10-22T12:54:44.000Z","updated_at":"2021-09-30T10:01:28.000Z","dependencies_parsed_at":"2022-08-23T14:10:06.365Z","dependency_job_id":null,"html_url":"https://github.com/miquido/revolt-sdk-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/miquido/revolt-sdk-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miquido%2Frevolt-sdk-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miquido%2Frevolt-sdk-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miquido%2Frevolt-sdk-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miquido%2Frevolt-sdk-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miquido","download_url":"https://codeload.github.com/miquido/revolt-sdk-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miquido%2Frevolt-sdk-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34208762,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"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":[],"created_at":"2024-11-09T11:25:57.813Z","updated_at":"2026-06-11T16:32:26.256Z","avatar_url":"https://github.com/miquido.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Revolt Golang SDK\nGo SDK for event tracking with Revolt.\n\n## Installation\nUse the go command:\n```\ngo run -u bitbucket.org/miquido/revolt-sdk-go\n```\n\n## Creating events\nEvent can be created with `revolt.NewEvent()` method. \n\n### Using struct\nExample:\n```\nrevolt.NewEvent(\"test.event.type\", struct {\n    UserId       int    `json:\"userId\"`\n    CreationType string `json:\"creationType\"`\n    Description  string `json:\"description\"`\n}{\n    UserId:       1,\n    CreationType: \"webbapp.test\",\n    Description:  \"short description\",\n})\n```\nWhen using struct{} don't forget to set explicit json tags for format purposes. \n\n### Using map\nExample:\n```\nrevolt.NewEvent(\"test.event.type\",\n    map[string]interface{}{\n        \"userId\": 5,\n        \"description\": \"short description\",\n    },\n)\n```\n\n## Example\nExample usage\n\n\tclient, err := revolt.NewClient(\"trackingId\", \"app.code\", \"secret\")\n\tif err != nil {\n\t    panic(err)\n\t}\n\n\tevent, err := revolt.NewEvent(\"test.event.type\", struct {\n\t\tUserId       int    `json:\"userId\"`\n\t}{\n\t\tUserId:       1,\n\t})\n\n\tevent2, err := revolt.NewEvent(\"test.event.type\",\n\t\tmap[string]interface{}{\n\t\t\t\"userId\": 5,\n\t\t},\n\t)\n\n\n\tresp, err := client.SendEvents([]revolt.Event{event, event2})\n\n## Async event sending\nFor async event sending use channels and goroutines.\n\n# Custom Parameters\nThere are few parameters which will be supported soon:\n\n- [x] endpoint - Specifies endpoint on which communication with Revolt service should take place.\n- [ ] maxBatchSize - Specifies maximum batch size of events that can be sent to Revolt API.\n- [ ] eventDelayMillis - Specifies maximum number of seconds for Event to be stored in queue. After delay is up, all events in queue will be sent automatically.\n- [ ] offlineMaxSize - Specifies maximum size of events that can be stored in queue when service does not respond.\n- [ ] retryIntervalSecs - Specifies first time interval in seconds to retry sending batch of events when any error occurs.\n- [ ] maxRetryIntervalSecs - Specifies maximum time interval in seconds to retry sending batch of events when any error occurs.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiquido%2Frevolt-sdk-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiquido%2Frevolt-sdk-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiquido%2Frevolt-sdk-go/lists"}