MCPcopy Create free account

hub / github.com/cisco/senml / functions

Functions37 in github.com/cisco/senml

↓ 16 callersFunctionDecode
Decode takes a SenML message in the given format and parses it and decodes it into the returned SenML record.
senml.go:155
↓ 7 callersFunctionEncode
Encode takes a SenML record, and encodes it using the given format.
senml.go:228
↓ 6 callersMethodstr
(f int)
senml.go:76
↓ 3 callersFunctionNormalize
Removes all the base items and expands records to have items that include what previosly in base iterms. Convets relative times to absoltue times.
senml.go:368
↓ 3 callersMethodfloat
(f int)
senml.go:90
↓ 2 callersFunctionoutputData
(data []byte)
cmd/senmlCat/senmlCat.go:59
↓ 1 callersFunctionIsValid
Test if SenML is valid
senml.go:427
↓ 1 callersFunctiondecodeTimed
(msg []byte)
cmd/senmlCat/senmlCat.go:36
↓ 1 callersFunctiondecodeTimed
(msg []byte)
cmd/senmlServer/senmlServer.go:56
↓ 1 callersMethodfromRecords
(recs []record)
senml.go:126
↓ 1 callersMethodint
(f int)
senml.go:83
↓ 1 callersFunctionoutputData
(data []byte)
cmd/senmlServer/senmlServer.go:79
↓ 1 callersFunctionprocessData
(dataIn []byte)
cmd/senmlCat/senmlCat.go:88
↓ 1 callersFunctionprocessData
(dataIn []byte)
cmd/senmlServer/senmlServer.go:314
↓ 1 callersMethodtoRecord
()
senml.go:97
↓ 1 callersMethodtoRecords
()
senml.go:117
FunctionExampleEncode1
()
senml_test.go:11
FunctionExampleEncode2
()
senml_test.go:28
FunctionTestBadInput1
(t *testing.T)
senml_test.go:155
FunctionTestBadInput2
(t *testing.T)
senml_test.go:163
FunctionTestBadInputNoValue
(t *testing.T)
senml_test.go:171
FunctionTestBadInputNumericBaseName
(t *testing.T)
senml_test.go:219
FunctionTestBadInputNumericName
(t *testing.T)
senml_test.go:187
FunctionTestBadInputWeirdName
(t *testing.T)
senml_test.go:203
FunctionTestDecode
(t *testing.T)
senml_test.go:100
FunctionTestEncode
(t *testing.T)
senml_test.go:63
FunctionTestInputBoolean
(t *testing.T)
senml_test.go:244
FunctionTestInputData
(t *testing.T)
senml_test.go:252
FunctionTestInputNumericName
(t *testing.T)
senml_test.go:179
FunctionTestInputString
(t *testing.T)
senml_test.go:260
FunctionTestInputSumOnly
TODO add func TestBadInputUnknownMtuField(t *testing.T) { data := []byte("[ { \"n\":\"hi\", \"v\":1.0, \"mtu_\":1.0 } ] ") _ , err := senml.Decode(
senml_test.go:236
FunctionTestInputWeirdBaseName
(t *testing.T)
senml_test.go:211
FunctionTestInputWeirdName
(t *testing.T)
senml_test.go:195
FunctionTestNormalize
(t *testing.T)
senml_test.go:125
FunctionhttpReqHandler
(w http.ResponseWriter, r *http.Request)
cmd/senmlServer/senmlServer.go:370
Functionmain
()
cmd/senmlCat/senmlCat.go:158
Functionmain
()
cmd/senmlServer/senmlServer.go:391