ResolveMemoryLocation resolves the storage location for a memory document.
( filename string, rawScope string, rawWorkspace string, )
| 1578 | |
| 1579 | // ResolveMemoryLocation resolves the storage location for a memory document. |
| 1580 | func (h *BaseHandlers) ResolveMemoryLocation( |
| 1581 | filename string, |
| 1582 | rawScope string, |
| 1583 | rawWorkspace string, |
| 1584 | ) (MemoryLocation, error) { |
| 1585 | return h.resolveMemoryLocation(context.Background(), filename, memorySelector{ |
| 1586 | Scope: memcontract.Scope(rawScope), |
| 1587 | WorkspaceID: rawWorkspace, |
| 1588 | }) |
| 1589 | } |
| 1590 | |
| 1591 | func (h *BaseHandlers) resolveMemoryLocation( |
| 1592 | ctx context.Context, |