Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSpendTimeWithCtx ¶
Types ¶
type ConcurrentMap ¶
type ConcurrentMap struct {
// contains filtered or unexported fields
}
func NewConcurrentMap ¶
func NewConcurrentMap(keyType, valueType reflect.Type) (*ConcurrentMap, error)
func (*ConcurrentMap) Delete ¶
func (cm *ConcurrentMap) Delete(key interface{})
func (*ConcurrentMap) Load ¶
func (cm *ConcurrentMap) Load(key interface{}) (value interface{}, ok bool)
func (*ConcurrentMap) Range ¶
func (cm *ConcurrentMap) Range(f func(key, value interface{}) bool)
func (*ConcurrentMap) Store ¶
func (cm *ConcurrentMap) Store(key, value interface{})
type DeleteSegMetaResp ¶
type DeleteSegMetaResp struct {
Err error
}
type GcMapTreeResp ¶
type GcMapTreeResp struct { Err error RespInfo interface{} }
type HashRing ¶
type HashRing struct {
// contains filtered or unexported fields
}
HashRing to hold the nodes and indexes
func New ¶
New returns a Hash ring with provided virtual node count and hash If hash is nil, fvn32a is used instead
type IdGenerator ¶
type IdGenerator struct {
// contains filtered or unexported fields
}
func NewIdGenerator ¶
func NewIdGenerator() (idGenerator *IdGenerator, err error)
func (*IdGenerator) GetId ¶
func (ig *IdGenerator) GetId() string
type UpdateSegResp ¶
Click to show internal directories.
Click to hide internal directories.