MCPcopy Create free account
hub / github.com/btccom/btcagent / ToJSONBytesLine

Method ToJSONBytesLine

JSONRPC.go:137–143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135}
136
137func (rpcData *JSONRPCRequest) ToJSONBytesLine() (bytes []byte, err error) {
138 bytes, err = rpcData.ToJSONBytes()
139 if err == nil {
140 bytes = append(bytes, '\n')
141 }
142 return
143}
144
145func (rpcData *JSONRPCRequest) ToRPC2JSONBytes() ([]byte, error) {
146 id := rpcData.ID

Callers 9

sendReconnectRequestMethod · 0.95
ToNotifyLineMethod · 0.45
writeJSONResponseMethod · 0.45
testConnectionMethod · 0.45
writeJSONRequestMethod · 0.45
testConnectionMethod · 0.45
writeJSONRequestMethod · 0.45

Calls 1

ToJSONBytesMethod · 0.95

Tested by

no test coverage detected