id

package
v0.0.0-...-1aa53b4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdGen

type IdGen struct {
	Domain string `json:"domain" gorm:"column:domain;primaryKey" bson:"_id"`
	Value  uint64 `json:"value" gorm:"column:value" bson:"value"`
}

type MongoRenew

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

func NewMongoRenew

func NewMongoRenew(client *mongo.Client, dbName, table string) *MongoRenew

func (*MongoRenew) Prepare

func (m *MongoRenew) Prepare() error

func (*MongoRenew) Renew

func (m *MongoRenew) Renew(ctx context.Context, domain string, quantum, offset uint64) (uint64, error)

type MysqlRenew

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

func NewMysqlRenew

func NewMysqlRenew(db *gorm.DB, table string) *MysqlRenew

func (*MysqlRenew) Prepare

func (m *MysqlRenew) Prepare() error

func (*MysqlRenew) Renew

func (m *MysqlRenew) Renew(ctx context.Context, domain string, quantum, offset uint64) (uint64, error)

Jump to

Keyboard shortcuts

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