Esempio n. 1
0
func (f FakeStore) EntryByIdWithEtag(
	t db.Transaction, id int64, e *vsafe.EntryWithEtag) error {
	// Only computes etag on the string fields
	if int(id) > len(f) {
		return vsafedb.ErrNoSuchId
	}
	e.Entry = *f[id-1]
	e.Etag = 57
	return nil
}