{"id":18517535,"url":"https://github.com/stevenferrer/phonestates","last_synced_at":"2025-05-14T15:30:21.581Z","repository":{"id":119401819,"uuid":"221201862","full_name":"stevenferrer/phonestates","owner":"stevenferrer","description":"A demo of using stateless, an implementation of state machine in Go which uses an external storage","archived":false,"fork":false,"pushed_at":"2021-11-02T15:31:48.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-17T04:39:13.733Z","etag":null,"topics":["fsm","state-machine","stateless"],"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/stevenferrer.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":"2019-11-12T11:28:18.000Z","updated_at":"2021-11-17T09:34:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"46c48653-ec6c-44d2-9d94-967c1e459e73","html_url":"https://github.com/stevenferrer/phonestates","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevenferrer%2Fphonestates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevenferrer%2Fphonestates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevenferrer%2Fphonestates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevenferrer%2Fphonestates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stevenferrer","download_url":"https://codeload.github.com/stevenferrer/phonestates/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254171482,"owners_count":22026451,"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","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":["fsm","state-machine","stateless"],"created_at":"2024-11-06T17:04:31.674Z","updated_at":"2025-05-14T15:30:21.551Z","avatar_url":"https://github.com/stevenferrer.png","language":"Go","readme":"# Phone states\n\n![phone states](./phonestates.png)\n\nThis project demonstrates the use of [stateless](https://github.com/qmuntal/stateless), an implementation of state machines in Go.\n\nThis is a modified version of the original [example](https://github.com/qmuntal/stateless/blob/master/example_test.go) which uses an external storage for storing the states.\n\n```go\ntype LogRepository struct {\n    ...\n    phoneLogs map[PhoneID][]Log\n}\n```\n\nThis is a very simple in-memory store. But in reality, this external storage can be a real database (e.g. Postgres, MariaDB, etc.)\n\n## Running\n\nTo run the example just run the command below:\n` $ go build -v -o phonestates \u0026\u0026 ./phonestates `\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevenferrer%2Fphonestates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevenferrer%2Fphonestates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevenferrer%2Fphonestates/lists"}