{"id":42937090,"url":"https://github.com/quasoft/memstore","last_synced_at":"2026-01-30T19:35:56.395Z","repository":{"id":57480640,"uuid":"117453820","full_name":"quasoft/memstore","owner":"quasoft","description":"In-memory store for gorilla/sessions for use in tests and dev environments","archived":false,"fork":false,"pushed_at":"2019-10-10T06:26:23.000Z","size":18,"stargazers_count":18,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-18T17:07:11.895Z","etag":null,"topics":["go","golang","inmemory","session-management","sessions","stub","tests"],"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/quasoft.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-01-14T18:03:11.000Z","updated_at":"2024-05-17T05:41:54.000Z","dependencies_parsed_at":"2022-09-26T17:41:16.699Z","dependency_job_id":null,"html_url":"https://github.com/quasoft/memstore","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/quasoft/memstore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quasoft%2Fmemstore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quasoft%2Fmemstore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quasoft%2Fmemstore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quasoft%2Fmemstore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quasoft","download_url":"https://codeload.github.com/quasoft/memstore/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quasoft%2Fmemstore/sbom","scorecard":{"id":755441,"data":{"date":"2025-08-11","repo":{"name":"github.com/quasoft/memstore","commit":"2bce066d2b0b885eab067015d658dfd8ec1880e0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"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":"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":"Code-Review","score":0,"reason":"Found 2/25 approved changesets -- score normalized to 0","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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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"}}]},"last_synced_at":"2025-08-22T21:33:53.418Z","repository_id":57480640,"created_at":"2025-08-22T21:33:53.418Z","updated_at":"2025-08-22T21:33:53.418Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28918222,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T19:10:10.838Z","status":"ssl_error","status_checked_at":"2026-01-30T19:06:40.573Z","response_time":66,"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","inmemory","session-management","sessions","stub","tests"],"created_at":"2026-01-30T19:35:55.653Z","updated_at":"2026-01-30T19:35:56.389Z","avatar_url":"https://github.com/quasoft.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# memstore\n\n[![GoDoc](https://godoc.org/github.com/quasoft/memstore?status.svg)](https://godoc.org/github.com/quasoft/memstore) [![Build Status](https://travis-ci.org/quasoft/memstore.png?branch=master)](https://travis-ci.org/quasoft/memstore) [![Coverage Status](https://coveralls.io/repos/github/quasoft/memstore/badge.svg?branch=master)](https://coveralls.io/github/quasoft/memstore?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/quasoft/memstore)](https://goreportcard.com/report/github.com/quasoft/memstore)\n\nIn-memory implementation of [gorilla/sessions](https://github.com/gorilla/sessions) for use in tests and dev environments\n\n## How to install\n\n    go get github.com/quasoft/memstore\n\n## Documentation\n\nDocumentation, as usual, can be found at [godoc.org](http://www.godoc.org/github.com/quasoft/memstore).\n\nThe interface of [gorilla/sessions](https://github.com/gorilla/sessions) is described at http://www.gorillatoolkit.org/pkg/sessions.\n\n### How to use\n``` go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n\n\t\"github.com/quasoft/memstore\"\n)\n\nfunc main() {\n\t// Create a memory store, providing authentication and\n\t// encryption key for securecookie\n\tstore := memstore.NewMemStore(\n\t\t[]byte(\"authkey123\"),\n\t\t[]byte(\"enckey12341234567890123456789012\"),\n\t)\n\n\thttp.HandleFunc(\"/hello\", func(w http.ResponseWriter, r *http.Request) {\n\t\t// Get session by name.\n\t\tsession, err := store.Get(r, \"session1\")\n\t\tif err != nil {\n\t\t\tlog.Printf(\"Error retrieving session: %v\", err)\n\t\t}\n\n\t\t// The name should be 'foobar' if home page was visited before that and 'Guest' otherwise.\n\t\tuser, ok := session.Values[\"username\"]\n\t\tif !ok {\n\t\t\tuser = \"Guest\"\n\t\t}\n\t\tfmt.Fprintf(w, \"Hello %s\", user)\n\t})\n\n\thttp.HandleFunc(\"/\", func(w http.ResponseWriter, r *http.Request) {\n\t\t// Get session by name.\n\t\tsession, err := store.Get(r, \"session1\")\n\t\tif err != nil {\n\t\t\tlog.Printf(\"Error retrieving session: %v\", err)\n\t\t}\n\n\t\t// Add values to the session object\n\t\tsession.Values[\"username\"] = \"foobar\"\n\t\tsession.Values[\"email\"] = \"spam@eggs.com\"\n\n\t\t// Save values\n\t\terr = session.Save(r, w)\n\t\tif err != nil {\n\t\t\tlog.Fatalf(\"Error saving session: %v\", err)\n\t\t}\n\t})\n\n\tlog.Printf(\"listening on http://%s/\", \"127.0.0.1:9090\")\n\tlog.Fatal(http.ListenAndServe(\"127.0.0.1:9090\", nil))\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquasoft%2Fmemstore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquasoft%2Fmemstore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquasoft%2Fmemstore/lists"}