An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

proxy.golang.org : github.com/rickkln/shift

Package shift provides the persistence layer for a simple "finite state machine" domain model with validation, explicit fields and reflex events per state change. shift.NewFSM builds a FSM instance that allows specific mutations of the domain model in the underlying sql table via inserts and updates. All mutations update the status of the model, mutates some fields and inserts a reflex event. Note that FSM is opinionated and has the following restrictions: only a single insert status, no transitions back to insert status, only a single transition per pair of statuses. shift.NewArcFSM builds a ArcFSM instance which is the same as an FSM but without its restrictions. It supports arbitrary transitions.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/rickkln/shift
License: MIT
Latest release: about 2 years ago
First release: about 2 years ago
Namespace: github.com/rickkln
Stars: 1 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: about 1 month ago

    Loading...
    Readme
    Loading...