Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMasterGRPCConn ¶
func GetMasterGRPCConn() (*grpc.ClientConn, error)
func ReleaseIDs ¶
Types ¶
type IDManager ¶
type IDManager struct {
// contains filtered or unexported fields
}
func GetSingleton ¶
func GetSingleton() *IDManager
func (*IDManager) AllocateIDs ¶
func (*IDManager) RecycleIDs ¶
type IDPool ¶
type IDPool[MT MySQLModel] struct {
// contains filtered or unexported fields
}
缓存资源可用于分配的ID,提供ID的刷新、分配、回收接口
type IDPoolUpdater ¶
type IDPoolUpdater interface {
// contains filtered or unexported methods
}
Click to show internal directories.
Click to hide internal directories.