Documentation ¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UidGenerator ¶
type UidGenerator struct {
// contains filtered or unexported fields
}
func NewDefaultIdGenerator ¶
func NewDefaultIdGenerator(instanceID int) (*UidGenerator, error)
func NewIdGenerator ¶
func NewIdGenerator(start, end int64) (*UidGenerator, error)
func (*UidGenerator) Next ¶
func (idg *UidGenerator) Next() (id int64, err error)
type UidGeneratorMng ¶
type UidGeneratorMng struct {
// contains filtered or unexported fields
}
func GetUidGeneratorMng ¶
func GetUidGeneratorMng() *UidGeneratorMng
func (*UidGeneratorMng) GetIdg ¶
func (m *UidGeneratorMng) GetIdg(key string) *UidGenerator
func (*UidGeneratorMng) Register ¶
func (m *UidGeneratorMng) Register(key string, start, end int64)
Click to show internal directories.
Click to hide internal directories.