MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / waveFileToWaveFileInfo

Function waveFileToWaveFileInfo

pkg/wshrpc/wshserver/wshserver.go:794–804  ·  view source on GitHub ↗
(wf *filestore.WaveFile)

Source from the content-addressed store, hash-verified

792}
793
794func waveFileToWaveFileInfo(wf *filestore.WaveFile) *wshrpc.WaveFileInfo {
795 return &wshrpc.WaveFileInfo{
796 ZoneId: wf.ZoneId,
797 Name: wf.Name,
798 Opts: wf.Opts,
799 CreatedTs: wf.CreatedTs,
800 Size: wf.Size,
801 ModTs: wf.ModTs,
802 Meta: wf.Meta,
803 }
804}
805
806func (ws *WshServer) BlockInfoCommand(ctx context.Context, blockId string) (*wshrpc.BlockInfoData, error) {
807 blockData, err := wstore.DBMustGet[*waveobj.Block](ctx, blockId)

Callers 1

BlockInfoCommandMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected