sequencer

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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