Documentation
¶
Index ¶
- Variables
- func HashValue(key interface{}) uint32
- func Index4Bit(key interface{}, bitCount uint8) uint32
- func Index4Int16(key interface{}) int16
- func Index4Int8(key interface{}) int8
- func Index4Uint8(key interface{}) uint8
- func Ip2Long(ip string) (ipVal uint32, err error)
- func JsonDecode(data []byte, v interface{}) (err error)
- func JsonDecodeFile(filePath string, v interface{}) (err error)
- func JsonEncode(v interface{}) (data []byte, err error)
- func Long2Ip(ipVal uint32) string
- func YamlDecode(data []byte, v interface{}) (err error)
- func YamlDecodeFile(filePath string, v interface{}) (err error)
- func YamlEncode(v interface{}) (data []byte, err error)
- type Bitmap
- type CanHash
- type HashSet
- type Msg
- type ShardMap
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AcquireArgs = func() []interface{} { return argsPool.Get().([]interface{}) } ReleaseArgs = func(args *[]interface{}) { if args == nil { return } *args = (*args)[:0] argsPool.Put(*args) } )
View Source
var (
ErrIpV4Address = errors.New(`invalid ip v4 address`)
)
View Source
var (
SetValue = struct{}{}
)
Functions ¶
func Index4Int16 ¶
func Index4Int16(key interface{}) int16
func Index4Int8 ¶
func Index4Int8(key interface{}) int8
func Index4Uint8 ¶
func Index4Uint8(key interface{}) uint8
func JsonDecode ¶
func JsonDecodeFile ¶
func JsonEncode ¶
func YamlDecode ¶
func YamlDecodeFile ¶
func YamlEncode ¶
Types ¶
type Bitmap ¶
type HashSet ¶
type HashSet interface {
Add(items ...interface{}) (newNum int)
Delete(items ...interface{}) (delNum int)
Exists(item interface{}) (exists bool)
Length() (length int)
}
func NewHashSet ¶
Click to show internal directories.
Click to hide internal directories.