sequence

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module(
	"vef:sequence",
	fx.Provide(
		sequence.NewMemoryStore,
		NewGenerator,
	),
)

Module provides the sequence generation functionality for the VEF framework.

Functions

func NewGenerator

func NewGenerator(store sequence.Store) sequence.Generator

NewGenerator creates a new sequence generator.

Types

type Engine

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

Engine implements sequence.Generator using a pluggable Store backend.

func (*Engine) Generate

func (e *Engine) Generate(ctx context.Context, key string) (string, error)

func (*Engine) GenerateN

func (e *Engine) GenerateN(ctx context.Context, key string, count int) ([]string, error)

Jump to

Keyboard shortcuts

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