MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / replyOkData

Method replyOkData

internal/nodes/api_stream.go:500–502  ·  view source on GitHub ↗

回复成功并包含数据

(requestId int64, message string, dataJSON []byte)

Source from the content-addressed store, hash-verified

498
499// 回复成功并包含数据
500func (this *APIStream) replyOkData(requestId int64, message string, dataJSON []byte) {
501 _ = this.stream.Send(&pb.NodeStreamMessage{RequestId: requestId, IsOk: true, Message: message, DataJSON: dataJSON})
502}
503
504// 获取缓存存取对象
505func (this *APIStream) cacheStorage(message *pb.NodeStreamMessage, cachePolicyJSON []byte) (storage caches.StorageInterface, shouldStop bool, err error) {

Callers

nothing calls this directly

Calls 1

SendMethod · 0.45

Tested by

no test coverage detected