Documentation ¶ Index ¶ func BinaryToJSON(t Type, fPort uint8, variables hstore.Hstore, decodeScript string, b []byte) ([]byte, error) func JSONToBinary(t Type, fPort uint8, variables hstore.Hstore, encodeScript string, ...) ([]byte, error) type Type Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func BinaryToJSON ¶ func BinaryToJSON(t Type, fPort uint8, variables hstore.Hstore, decodeScript string, b []byte) ([]byte, error) BinaryToJSON encodes the given binary payload to JSON. func JSONToBinary ¶ func JSONToBinary(t Type, fPort uint8, variables hstore.Hstore, encodeScript string, jsonB []byte) ([]byte, error) JSONToBinary encodes the given JSON to binary. Types ¶ type Type ¶ type Type string Type defines the codec type. const ( None = "" CayenneLPPType Type = "CAYENNE_LPP" CustomJSType Type = "CUSTOM_JS" ) Available codec types. Source Files ¶ View all Source files codec.go Directories ¶ Show internal Expand all Path Synopsis cayennelpp js Click to show internal directories. Click to hide internal directories.