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: 6 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 {
	Flows []*types.Flow `json:"flows"`
}

func (*FlowFile) GetByID

func (ff *FlowFile) GetByID(id dot.IntID) *types.Flow

func (*FlowFile) GetByPageID

func (ff *FlowFile) GetByPageID(pageID dot.IntID) *types.Flow

type FlowFileStore

type FlowFileStore struct {
	FilePath  string
	FlowsData *FlowFile
}

func NewFlowFileStore

func NewFlowFileStore(filePath string) (*FlowFileStore, error)

func (*FlowFileStore) LoadFlowByID

func (s *FlowFileStore) LoadFlowByID(id dot.IntID) *types.Flow

func (*FlowFileStore) LoadFlowByPageID

func (s *FlowFileStore) LoadFlowByPageID(pageID dot.IntID) *types.Flow

func (*FlowFileStore) SaveFlow

func (s *FlowFileStore) SaveFlow(flow *types.Flow) *types.Flow

type FlowStore

type FlowStore interface {
	SaveFlow(flow *types.Flow) *types.Flow

	LoadFlowByID(id dot.IntID) *types.Flow

	LoadFlowByPageID(pageID dot.IntID) *types.Flow
}

Jump to

Keyboard shortcuts

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