(ctx context.Context, data wshrpc.CommandSetMetaData)
| 176 | } |
| 177 | |
| 178 | func (ws *WshServer) SetMetaCommand(ctx context.Context, data wshrpc.CommandSetMetaData) error { |
| 179 | log.Printf("SetMetaCommand: %s | %v\n", data.ORef, data.Meta) |
| 180 | oref := data.ORef |
| 181 | err := wstore.UpdateObjectMeta(ctx, oref, data.Meta, false) |
| 182 | if err != nil { |
| 183 | return fmt.Errorf("error updating object meta: %w", err) |
| 184 | } |
| 185 | wcore.SendWaveObjUpdate(oref) |
| 186 | return nil |
| 187 | } |
| 188 | |
| 189 | func (ws *WshServer) GetRTInfoCommand(ctx context.Context, data wshrpc.CommandGetRTInfoData) (*waveobj.ObjRTInfo, error) { |
| 190 | return wstore.GetRTInfo(data.ORef), nil |
nothing calls this directly
no test coverage detected