entity

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConcreteExecution

type ConcreteExecution struct {
	BranchToken []byte
	TreeID      string
	BranchID    string
	Execution
}

ConcreteExecution is a concrete execution.

func (ConcreteExecution) Clone

func (ConcreteExecution) Clone() Entity

Clone will return a new copy of ConcreteExecution

func (*ConcreteExecution) Validate

func (ce *ConcreteExecution) Validate() error

Validate returns an error if ConcreteExecution is not valid, nil otherwise.

type CurrentExecution

type CurrentExecution struct {
	CurrentRunID string
	Execution
}

CurrentExecution is a current execution.

func (CurrentExecution) Clone

func (CurrentExecution) Clone() Entity

Clone will return a new copy of CurrentExecution

func (*CurrentExecution) Validate

func (curre *CurrentExecution) Validate() error

Validate returns an error if CurrentExecution is not valid, nil otherwise.

type Entity

type Entity interface {
	Validate() error
	Clone() Entity
}

Entity allows to deserialize and validate different type of executions

type Execution

type Execution struct {
	ShardID    int
	DomainID   string
	WorkflowID string
	RunID      string
	State      int
}

Execution is a base type for executions which should be checked or fixed.

Jump to

Keyboard shortcuts

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