{"id":36742746,"url":"https://github.com/artyomturkin/protoactor-go-persistence-boltdb","last_synced_at":"2026-01-12T12:30:08.993Z","repository":{"id":57562781,"uuid":"133633740","full_name":"artyomturkin/protoactor-go-persistence-boltdb","owner":"artyomturkin","description":"Go package with persistence provider for Proto Actor (Go) based on BoltDB.","archived":false,"fork":false,"pushed_at":"2018-05-17T05:49:22.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T08:04:46.338Z","etag":null,"topics":["actors","bolt","boltdb","protoactor","protoactor-go"],"latest_commit_sha":null,"homepage":"","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/artyomturkin.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-05-16T08:21:17.000Z","updated_at":"2021-01-21T06:56:55.000Z","dependencies_parsed_at":"2022-09-16T10:22:35.166Z","dependency_job_id":null,"html_url":"https://github.com/artyomturkin/protoactor-go-persistence-boltdb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/artyomturkin/protoactor-go-persistence-boltdb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyomturkin%2Fprotoactor-go-persistence-boltdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyomturkin%2Fprotoactor-go-persistence-boltdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyomturkin%2Fprotoactor-go-persistence-boltdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyomturkin%2Fprotoactor-go-persistence-boltdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artyomturkin","download_url":"https://codeload.github.com/artyomturkin/protoactor-go-persistence-boltdb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyomturkin%2Fprotoactor-go-persistence-boltdb/sbom","scorecard":{"id":210010,"data":{"date":"2025-08-11","repo":{"name":"github.com/artyomturkin/protoactor-go-persistence-boltdb","commit":"d2b934b1aaaba945c943ec6cce4541f0b0f57eb3"},"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":"Code-Review","score":0,"reason":"Found 0/4 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":"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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT 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":"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 1 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"}},{"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"}}]},"last_synced_at":"2025-08-17T00:36:41.870Z","repository_id":57562781,"created_at":"2025-08-17T00:36:41.870Z","updated_at":"2025-08-17T00:36:41.870Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338977,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["actors","bolt","boltdb","protoactor","protoactor-go"],"created_at":"2026-01-12T12:30:08.277Z","updated_at":"2026-01-12T12:30:08.987Z","avatar_url":"https://github.com/artyomturkin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Proto Actor [Go] - BoltDB persistence provider\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/artyomturkin/protoactor-go-persistence-boltdb)](https://goreportcard.com/report/github.com/artyomturkin/protoactor-go-persistence-boltdb)\n\nGo package with persistence provider for Proto Actor (Go) based on BoltDB.\n\n## Get started\n\nInstall package\n\n```\ngo get github.com/artyomturkin/protoactor-go-persistence-boltdb\n```\n\nCreate event and snapshot proto messages. Messages can be named differently.\n```protobuf\nsyntax = \"proto3\";\npackage main;\n\nmessage Event {\n    string state = 1;\n}\n\nmessage Snapshot {\n    string state = 1;\n}\n```\n\nGenerate go types from proto file\n```\nprotoc --gogoslick_out=. test.proto\n```\n\nCreate DataStore implementation\n```go\ntype exampleDataStore struct {\n\tproviderState persistence.ProviderState\n}\n\nfunc (p *exampleDataStore) GetState() persistence.ProviderState {\n\treturn p.providerState\n}\n\nfunc newExampleDataStore(snapshotInterval int, db *bolt.DB) *exampleDataStore {\n\treturn \u0026exampleDataStore{\n\t\tproviderState: boltdb.NewBoltProvider(snapshotInterval, db),\n\t}\n}\n```\n\nCreate Actor with persistence implementation\n```go\ntype exampleActor struct {\n\tpersistence.Mixin\n\n\tstate string\n}\n\n//Command to print state with external sync\ntype Print struct {\n\twg *sync.WaitGroup\n}\n\n//ensure exampleActor is actor.Actor\nvar _ actor.Actor = (*exampleActor)(nil)\n\nfunc (a *exampleActor) Receive(ctx actor.Context) {\n\tswitch msg := ctx.Message().(type) {\n\tcase *persistence.RequestSnapshot:\n\t\t// PersistSnapshot when requested\n\t\ta.PersistSnapshot(\u0026Snapshot{State: a.state})\n\tcase *Snapshot:\n\t\t// Restore from Snapshot\n\t\ta.state = msg.State\n\tcase *Event:\n\t\t// Persist all events received outside of recovery\n\t\tif !a.Recovering() {\n\t\t\ta.PersistReceive(msg)\n\t\t}\n\t\t// Set state to whatever message says\n\t\ta.state = msg.State\n\tcase *Print:\n\t\tfmt.Printf(\"State is %s\\n\", a.state)\n\t\tmsg.wg.Done()\n\t}\n}\n```\n\nCreate actor.Producer implementation\n```go\nfunc exampleActorProducer() actor.Actor {\n\treturn \u0026exampleActor{}\n}\n```\n\nIn open bolt database and pass it to actor.Props\n```go\nfunc main() {\n\tdb, err := bolt.Open(tempPath, 0666, nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tprops := actor.FromProducer(exampleActorProducer).\n\t\tWithMiddleware(\n\t\t\tpersistence.Using(newExampleDataStore(4, db)),\n\t\t)\n\t............\n}\n```\n\nSpawn actor and send it some events to set state, ask actor to print its state\n```go\nfunc main() {\n\t............\n\tpid, err := actor.SpawnNamed(props, \"example.actor\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\t//Send some messages to persist\n\tfor index := 0; index \u003c 10; index++ {\n\t\tpid.Tell(\u0026Event{State: fmt.Sprintf(\"event-%d\", index)})\n\t}\n\n\t//tell actor to print its state\n\twg.Add(1)\n\tpid.Tell(\u0026Print{wg: wg})\n\twg.Wait()\n\t............\n}\n```\n\nStop actor and db, then restart everything\n```go\nfunc main() {\n\t............\n\t//stop actor, close db and reopen it\n\tpid.GracefulPoison()\n\tdb.Close()\n\n\t//reopen db and respawn actor\n\tdb, err = bolt.Open(tempPath, 0666, nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tprops = actor.FromProducer(exampleActorProducer).\n\t\tWithMiddleware(\n\t\t\tpersistence.Using(newExampleDataStore(4, db)),\n\t\t)\n\n\tpid, err = actor.SpawnNamed(props, \"example.actor\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\t//tell actor to print its state\n\twg.Add(1)\n\tpid.Tell(\u0026Print{wg: wg})\n\twg.Wait()\n\n\t//stop actor, close db and reopen it\n\tpid.GracefulPoison()\n\tdb.Close()\n}\n```\n\nRunning example will output:\n```\nState is event-9\nState is event-9\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartyomturkin%2Fprotoactor-go-persistence-boltdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartyomturkin%2Fprotoactor-go-persistence-boltdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartyomturkin%2Fprotoactor-go-persistence-boltdb/lists"}