state

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: 4 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"`
	Name       State  `json:"name" validate:"required"`
}

func NewEntity

func NewEntity(projectUID string, state State) 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

type State

type State string

State is a value object represent state's name

func (State) String

func (s State) String() string

Jump to

Keyboard shortcuts

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