memory

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package memory 提供 flow.Store 的进程内实现: 嵌入式用法与单测用;生产环境请实现 ent 版 Store。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store 内存实现。零配置:flow.New(flow.WithStore(memory.New()))。

func New

func New() *Store

func (*Store) Definitions

func (s *Store) Definitions() flow.DefinitionStore

func (*Store) History

func (s *Store) History() flow.HistoryStore

func (*Store) Instances

func (s *Store) Instances() flow.InstanceStore

func (*Store) Tasks

func (s *Store) Tasks() flow.TaskStore

func (*Store) Tokens

func (s *Store) Tokens() flow.TokenStore

func (*Store) WithTx

func (s *Store) WithTx(ctx context.Context, fn func(context.Context) error) error

WithTx 事务占位:内存实现无真实事务,fn 直接执行。 与 ent/gorm 实现同名同签名,宿主切换存储时无需改动引擎入口包装。

Jump to

Keyboard shortcuts

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