user

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SHARD_COUNT = 32

Functions

func AddUser

func AddUser(key string, value interface{}) bool

func AllLen

func AllLen() int

func DeleteKey

func DeleteKey(key string)

func DeleteOUser

func DeleteOUser(key string, value interface{})

func DeleteUser

func DeleteUser(key string, value interface{}) (bool, *time.Time)

func DeleteValue

func DeleteValue(value interface{})

func GetALlKeyArray

func GetALlKeyArray() []string

func GetKeyArray

func GetKeyArray(start int, num int) []interface{}

func GetLen

func GetLen(key string) int

func GetSetOneUser

func GetSetOneUser(key string, value interface{}) (interface{}, bool)

func GetUserAddtime

func GetUserAddtime(key string) *time.Time

func GetUsers

func GetUsers(key string) []interface{}
func NewUserLink() *userLink

Types

type Tuple

type Tuple struct {
	Key string
	Val interface{}
}

type UserExMap

type UserExMap []*userExMap

func NewUserExMap

func NewUserExMap() UserExMap

func (UserExMap) Add

func (m UserExMap) Add(key string, value interface{}) bool

func (UserExMap) AllLen

func (m UserExMap) AllLen() int

func (UserExMap) Delete

func (m UserExMap) Delete(key string, value interface{}) (bool, *time.Time)

func (UserExMap) DeleteKey

func (m UserExMap) DeleteKey(key string)

func (UserExMap) DeleteOvalue

func (m UserExMap) DeleteOvalue(key string, value interface{})

func (UserExMap) DeleteValue

func (m UserExMap) DeleteValue(value interface{})

func (UserExMap) Get

func (m UserExMap) Get(key string) []interface{}

func (UserExMap) GetALLKey

func (m UserExMap) GetALLKey() []string

func (UserExMap) GetALLValue

func (m UserExMap) GetALLValue() []interface{}

func (UserExMap) GetAddTime

func (m UserExMap) GetAddTime(key string) *time.Time

func (UserExMap) GetKeyArray

func (m UserExMap) GetKeyArray(start int, num int) []interface{}

func (UserExMap) GetSetOneValue

func (m UserExMap) GetSetOneValue(key string, value interface{}) (interface{}, bool)

func (UserExMap) IsHasKey

func (m UserExMap) IsHasKey(key string) bool

func (UserExMap) Items

func (m UserExMap) Items() map[string]interface{}

func (UserExMap) IterBuffered

func (m UserExMap) IterBuffered() <-chan Tuple

func (UserExMap) Len

func (m UserExMap) Len(key string) int

Jump to

Keyboard shortcuts

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