MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / Read

Method Read

pkg/redis/observability.go:71–75  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

69}
70
71func (c *observableConn) Read(b []byte) (n int, err error) {
72 n, err = c.Conn.Read(b)
73 bytesRx.WithLabelValues(c.addr).Add(float64(n))
74 return n, err
75}
76
77func (c *observableConn) Write(b []byte) (n int, err error) {
78 n, err = c.Conn.Write(b)

Callers 15

BytesFunction · 0.45
readMethod · 0.45
TestEncryptDecryptFunction · 0.45
makeReadTaskFunction · 0.45
GenerateIDFunction · 0.45
GenerateKeyFunction · 0.45
TestListenUDPFunction · 0.45
readGatewayMessagesFunction · 0.45
readMessageFunction · 0.45
TestScheduleLateCancelFunction · 0.45
TestFrontendFunction · 0.45

Calls 2

AddMethod · 0.65
WithLabelValuesMethod · 0.45

Tested by 10

TestEncryptDecryptFunction · 0.36
TestListenUDPFunction · 0.36
readMessageFunction · 0.36
TestScheduleLateCancelFunction · 0.36
TestFrontendFunction · 0.36
TestRawDataFunction · 0.36
expectAckFunction · 0.36
randomUpDataPayloadFunction · 0.36
generateSessionFunction · 0.36