mysql

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMyUID

func NewMyUID() uid.UID

NewMyUID - create new uid with default collection name.

Types

type MyUID

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

MyUID - mysql uid gen

func (*MyUID) Close

func (r *MyUID) Close() error

Close - close connection

func (*MyUID) HasInt32

func (r *MyUID) HasInt32() bool

HasInt32 - has int32 uid

func (*MyUID) NextUID32

func (r *MyUID) NextUID32() int32

NextUID32 - next int32 uid

func (*MyUID) NextUID64

func (r *MyUID) NextUID64() int64

NextUID64 - next int64 uid

func (*MyUID) StartAndGC

func (r *MyUID) StartAndGC(config uid.Config) error

StartAndGC start uid adapter. config is like {"node":"11"} so no gc operation.

Jump to

Keyboard shortcuts

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