transition

package
v0.0.0-...-23becbe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

type Entity struct {
	domain.BaseEntity
	ProjectUID string        `json:"projectUID" validate:"required,uuid4"`
	Event      string        `json:"event" validate:"required"`
	Current    state.State   `json:"current" validate:"required"`
	Next       state.State   `json:"next" validate:"required"`
	Action     action.Action `json:"action" validate:"required"`
}

func NewEntity

func NewEntity(projectUID, event, current, next, act string) Entity

func (Entity) Validate

func (e Entity) Validate() error

type Persistent

type Persistent struct {
	domain.BasePersistent
	Entity
}

Persistent actually is an entity which take responsibility to maintain state persistent

func NewPersistent

func NewPersistent(entity Entity) Persistent

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL