MCPcopy
hub / github.com/wavetermdev/waveterm / SetRTInfoCommand

Method SetRTInfoCommand

pkg/wshrpc/wshserver/wshserver.go:193–200  ·  view source on GitHub ↗
(ctx context.Context, data wshrpc.CommandSetRTInfoData)

Source from the content-addressed store, hash-verified

191}
192
193func (ws *WshServer) SetRTInfoCommand(ctx context.Context, data wshrpc.CommandSetRTInfoData) error {
194 if data.Delete {
195 wstore.DeleteRTInfo(data.ORef)
196 return nil
197 }
198 wstore.SetRTInfo(data.ORef, data.Data)
199 return nil
200}
201
202func (ws *WshServer) ResolveIdsCommand(ctx context.Context, data wshrpc.CommandResolveIdsData) (wshrpc.CommandResolveIdsRtnData, error) {
203 rtn := wshrpc.CommandResolveIdsRtnData{}

Callers

nothing calls this directly

Calls 2

DeleteRTInfoFunction · 0.92
SetRTInfoFunction · 0.92

Tested by

no test coverage detected