Documentation ¶
Index ¶
- Constants
- Variables
- func Bytes2Int64(data []byte) (num int64)
- func HashOrNumber(key interface{}) (value uint32)
- func Ip2Long(ip string) (ipVal uint32, err error)
- func Json(filePath string, out interface{}) (err error)
- func Long2Ip(ipVal uint32) string
- func Yaml(filePath string, out interface{}) (err error)
- type CanHash
- type DoubleNode
- type Node
- type SingleNode
Constants ¶
View Source
const ( Success = 1 DefaultPersonasCacheTimeout = 60 DefaultPersonasMax = 512 DefaultPersonasRedisPrefix = "boot:pns:" )
View Source
const (
Ok = "OK"
)
Variables ¶
View Source
var ( Decr = -1 SetValue = struct{}{} 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`)
)
Functions ¶
func Bytes2Int64 ¶
func HashOrNumber ¶
func HashOrNumber(key interface{}) (value uint32)
Types ¶
type DoubleNode ¶
func NewDoubleNode ¶
func NewDoubleNode(value interface{}, left unsafe.Pointer, right unsafe.Pointer) (node *DoubleNode)
type SingleNode ¶
func NewSingleNode ¶
func NewSingleNode(value interface{}, right unsafe.Pointer) (node *SingleNode)
Click to show internal directories.
Click to hide internal directories.