Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module( "vef:sequence", fx.Provide( fx.Annotate( sequence.NewMemoryStore, fx.As(fx.Self()), fx.As(new(sequence.Store)), ), NewGenerator, ), fx.Invoke(initStore), )
Module provides the sequence generation functionality for the VEF framework.
The in-memory store backs the Generator by default and is also exposed as its concrete *sequence.MemoryStore, so applications can inject it and seed rules via MemoryStore.Register during their own start-up hook.
Applications can replace the backing store with a persistent or distributed one (e.g. sequence.NewDBStore or sequence.NewRedisStore) by decorating sequence.Store with vef.Decorate. When the active store implements contract.Initializer (as *sequence.DBStore does), initStore runs Init at start-up.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.