Documentation ¶
Index ¶
- func Decode(f mapstructure.DecodeHookFunc, data *map[string]interface{}, e interface{}) (interface{}, error)
- func MaterialTypeHook() mapstructure.DecodeHookFunc
- func TimeHook(layout string) mapstructure.DecodeHookFunc
- func UIDHook() mapstructure.DecodeHookFunc
- func WaterSourceHook() mapstructure.DecodeHookFunc
- type AreaEventWrapper
- type EventWrapper
- type FarmEventWrapper
- type MaterialEventWrapper
- type ReservoirEventWrapper
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)
func MaterialTypeHook ¶
func MaterialTypeHook() mapstructure.DecodeHookFunc
func TimeHook ¶
func TimeHook(layout string) mapstructure.DecodeHookFunc
func UIDHook ¶
func UIDHook() mapstructure.DecodeHookFunc
func WaterSourceHook ¶
func WaterSourceHook() mapstructure.DecodeHookFunc
Types ¶
type AreaEventWrapper ¶
type AreaEventWrapper EventWrapper
func (*AreaEventWrapper) UnmarshalJSON ¶
func (w *AreaEventWrapper) UnmarshalJSON(b []byte) error
type EventWrapper ¶
type EventWrapper struct { EventName string EventData interface{} }
EventWrapper is used to wrap the event interface with its struct name, so it will be easier to unmarshal later
type FarmEventWrapper ¶
type FarmEventWrapper EventWrapper
func (*FarmEventWrapper) UnmarshalJSON ¶
func (w *FarmEventWrapper) UnmarshalJSON(b []byte) error
type MaterialEventWrapper ¶
type MaterialEventWrapper EventWrapper
func (*MaterialEventWrapper) UnmarshalJSON ¶
func (w *MaterialEventWrapper) UnmarshalJSON(b []byte) error
type ReservoirEventWrapper ¶
type ReservoirEventWrapper EventWrapper
func (*ReservoirEventWrapper) UnmarshalJSON ¶
func (w *ReservoirEventWrapper) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.