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

Top 7.0% on proxy.golang.org
Top 5.8% dependent packages on proxy.golang.org
Top 4.7% dependent repos on proxy.golang.org
Top 9.0% forks on proxy.golang.org

proxy.golang.org : github.com/luno/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/luno/shift
License: MIT
Latest release: over 1 year ago
First release: over 2 years ago
Namespace: github.com/luno
Dependent packages: 1
Dependent repositories: 1
Stars: 17 on GitHub
Forks: 4 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 27 days ago

    Loading...
    Readme
    Loading...