Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( JSON = jsonBinder{} Text = textBinder{} Topic = topicBinder{} )
Available data binders.
View Source
var JSONDisallowUnknownFields = false
JSONDisallowUnknownFields causes the Decoder to return an error when the destination is a struct and the input contains object keys which do not match any non-ignored, exported fields in the destination.
View Source
var JSONUseNumber = false
JSONUseNumber causes the Decoder to unmarshal a number into an interface{} as a Number instead of as a float64.
Functions ¶
Types ¶
type DataBinder ¶
type DataBinder interface { // Name of the binder Name() string // Bind unmarshal payload to an object Bind([]byte, interface{}) error }
DataBinder describes the interface which needs to be implemented for binding the data present in the MQTT payload.
Click to show internal directories.
Click to hide internal directories.