{"id":38248138,"url":"https://github.com/masatomizuta/go-redistest","last_synced_at":"2026-01-17T01:25:13.977Z","repository":{"id":135085947,"uuid":"80775480","full_name":"masatomizuta/go-redistest","owner":"masatomizuta","description":"Golang package controls Redis servers for unit tests","archived":false,"fork":false,"pushed_at":"2017-02-06T01:38:03.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T09:51:20.943Z","etag":null,"topics":["go","golang","redis","unit-testing"],"latest_commit_sha":null,"homepage":null,"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/masatomizuta.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-02T22:37:10.000Z","updated_at":"2017-02-02T22:38:20.000Z","dependencies_parsed_at":"2024-06-20T08:58:22.054Z","dependency_job_id":"ac7547a0-72c4-4dea-a7d3-73dc08f49e10","html_url":"https://github.com/masatomizuta/go-redistest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/masatomizuta/go-redistest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masatomizuta%2Fgo-redistest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masatomizuta%2Fgo-redistest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masatomizuta%2Fgo-redistest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masatomizuta%2Fgo-redistest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/masatomizuta","download_url":"https://codeload.github.com/masatomizuta/go-redistest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masatomizuta%2Fgo-redistest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28491448,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T00:50:05.742Z","status":"ssl_error","status_checked_at":"2026-01-17T00:43:11.982Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["go","golang","redis","unit-testing"],"created_at":"2026-01-17T01:25:13.894Z","updated_at":"2026-01-17T01:25:13.960Z","avatar_url":"https://github.com/masatomizuta.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-redistest\n\n[![Build Status](https://travis-ci.org/masatomizuta/go-redistest.svg?branch=master)](https://travis-ci.org/masatomizuta/go-redistest)\n\ngo-redistest controls Redis server instance to be used in unit tests for Golang.\nYou don't need to start instances outside the unit test code manually.\n\n### Features\n\n* Replication\n* Sentinels\n\n### Requirement\n\n[Redis](https://github.com/antirez/redis) must be installed and ```redis-server``` needs to be in your ```$PATH```.\n\n### Install\n\nInstall redistest package:\n\n```bash\ngo get github.com/masatomizuta/go-redistest\n```\n\nImport it in your application:\n\n```go\nimport \"github.com/masatomizuta/go-redistest\n```\n\n## Usage\n\n### Run a master server\n\n```go\nmaster, err := redistest.RunServer(6379)\nif err != nil {\n    panic(err)\n}\ndefer master.Stop()\n```\n\n### Run a slave server\n\n```go\nslave, err := master.RunSlaveServer(6380)\nif err != nil {\n    log.Fatal(err)\n}\ndefer slave.Stop()\n```\n\n### Run a sentinel server\n\n```go\nsentinel, err := master.RunSentinelServer(26379, \"mymaster\")\nif err != nil {\n    log.Fatal(err)\n}\ndefer sentinel.Stop()\n```\n\n## Todo\n\n* Wipe DB and conf file\n* More settings\n\n## License\n\n[MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasatomizuta%2Fgo-redistest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmasatomizuta%2Fgo-redistest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasatomizuta%2Fgo-redistest/lists"}