store

package
v0.0.0-...-2c63f42 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlowFile

type FlowFile struct {
	Last    map[string]*flowcore.FlowState   `json:"last"`
	History map[string][]*flowcore.FlowState `json:"history"`
}

func NewFlowFile

func NewFlowFile() *FlowFile

type FlowStateStore

type FlowStateStore struct {
	FilePath string
	Data     *FlowFile
}

func NewFlowStateStore

func NewFlowStateStore(filePath string) (*FlowStateStore, error)

func (*FlowStateStore) LoadState

func (s *FlowStateStore) LoadState(ctx context.Context, pageID, psid dot.IntID) (*flowcore.FlowState, error)

func (*FlowStateStore) SaveState

func (s *FlowStateStore) SaveState(state *flowcore.FlowState) error

Jump to

Keyboard shortcuts

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