Documentation ¶
Index ¶
- func DecodeData(data []byte, i interface{}) error
- func DecodeDataByType(data []byte, t reflect.Type) (interface{}, error)
- func EncodeData(data interface{}) ([]byte, error)
- func EncodeDataByType(typeValue reflect.Value) ([]byte, error)
- func GetOutBoundIP() (ip string, err error)
- func Lock(key string)
- func RLock(key string)
- func RUnlock(key string)
- func RUse(key string, f func())
- func Unlock(key string)
- func Use(key string, f func())
- type MsgpackCodec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeData ¶
func EncodeData ¶
Types ¶
type MsgpackCodec ¶
type MsgpackCodec struct{}
MsgpackCodec uses messagepack marshaler and unmarshaler.
func (MsgpackCodec) Decode ¶
func (c MsgpackCodec) Decode(data []byte, i interface{}) error
Decode decodes an object from slice of bytes.
func (MsgpackCodec) Encode ¶
func (c MsgpackCodec) Encode(i interface{}) ([]byte, error)
Encode encodes an object into slice of bytes.
Click to show internal directories.
Click to hide internal directories.