sequence

package
v0.0.0-...-86833b7 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithSequences

func WithSequences(r *container.Registry, collectionName string) error

Types

type Document

type Document struct {
	Name           string `bson:"name"`
	CollectionName string `bson:"collectionName"`
	Number         Number `bson:"number,omitempty" `
	TenantData     bson.M `bson:"tenantData"`
}

type Manager

type Manager struct {
	DB                 odm.Manager
	MultiTenantManager *multitenant.Manager
}

func (*Manager) Increment

func (m *Manager) Increment(r *container.Registry, name, collection string, seq Number) (Number, error)

type Number

type Number int64

type Value

type Value int64

Jump to

Keyboard shortcuts

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