decoder

package
v0.0.0-...-87346ed Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 ...

func TimeHook

func TimeHook(layout string) mapstructure.DecodeHookFunc

TimeHook is used ...

func UIDHook

func UIDHook() mapstructure.DecodeHookFunc

UIDHook 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

Jump to

Keyboard shortcuts

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