Documentation
¶
Overview ¶
Package memory 提供 flow.Store 的进程内实现: 嵌入式用法与单测用;生产环境请实现 ent 版 Store。
Index ¶
- type Store
- func (s *Store) Definitions() flow.DefinitionStore
- func (s *Store) History() flow.HistoryStore
- func (s *Store) Instances() flow.InstanceStore
- func (s *Store) Tasks() flow.TaskStore
- func (s *Store) Tokens() flow.TokenStore
- func (s *Store) WithTx(ctx context.Context, fn func(context.Context) error) error
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 (*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) Tokens ¶
func (s *Store) Tokens() flow.TokenStore
Click to show internal directories.
Click to hide internal directories.