Documentation ¶
Index ¶
- func Decode(f mapstructure.DecodeHookFunc, data *map[string]interface{}, e interface{}) (interface{}, error)
- func DeviceDomainDetailHook() mapstructure.DecodeHookFunc
- func TimeHook(layout string) mapstructure.DecodeHookFunc
- func UIDHook() mapstructure.DecodeHookFunc
- type DeviceEventWrapper
- type InterfaceWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
func Decode(f mapstructure.DecodeHookFunc, data *map[string]interface{}, e interface{}) (interface{}, error)
Decode is used...
func DeviceDomainDetailHook ¶
func DeviceDomainDetailHook() mapstructure.DecodeHookFunc
DeviceDomainDetailHook is used ...
Types ¶
type DeviceEventWrapper ¶
type DeviceEventWrapper InterfaceWrapper
DeviceEventWrapper is used...
func (*DeviceEventWrapper) UnmarshalJSON ¶
func (w *DeviceEventWrapper) UnmarshalJSON(b []byte) error
UnmarshalJSON is used ...
type InterfaceWrapper ¶
type InterfaceWrapper struct { Name string Data interface{} }
InterfaceWrapper is used to wrap an interface with its struct name, so it will be easier to unmarshal later
Click to show internal directories.
Click to hide internal directories.