| // Copyright 2015 The Vanadium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| "v.io/v23/services/application" |
| // TP is a convenience function. It prepends the transactionNamePrefix |
| func TP(path string) string { |
| return naming.Join(transactionNamePrefix, path) |
| func (ms *Memstore) PersistedFile() string { |
| func translateToGobEncodeable(in interface{}) interface{} { |
| env, ok := in.(application.Envelope) |
| return applicationEnvelope{ |
| Publisher: security.MarshalBlessings(env.Publisher), |
| func (ms *Memstore) GetGOBConvertedMemstore() map[string]interface{} { |
| convertedMap := make(map[string]interface{}) |
| for k, v := range ms.data { |
| case application.Envelope: |
| convertedMap[k] = translateToGobEncodeable(tv) |