sequencer

package
v0.20.19 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 License: Apache-2.0 Imports: 9 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sequence

type Sequence struct {
	Value       int64
	IncrementBy int64
}

Sequence represents a sequence

type Service

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

func New

func New(ctx context.Context, db *sql.DB) *Service

func (*Service) Next

func (s *Service) Next(table string, any interface{}, selector string) error

type Walker

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

func NewWalker

func NewWalker(value interface{}, selectors []string) (*Walker, error)

func (*Walker) Allocate

func (w *Walker) Allocate(value interface{}, seq *Sequence) error

Allocate allocate sequence

func (*Walker) CountEmpty

func (w *Walker) CountEmpty(value interface{}) (int, error)

func (*Walker) Leaf

func (w *Walker) Leaf(value interface{}) (interface{}, error)

Leaf returns a leaf value

Jump to

Keyboard shortcuts

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