Example #1
0
func (self *Backend) BlobIterator() model.Iterator {
	return model.ConversionIterator(
		self.Blobs.Iterator(),
		new(BlobDoc),
		func(doc interface{}) interface{} {
			return &doc.(*BlobDoc).Blob
		},
	)
}
Example #2
0
func (self *Backend) ImageIterator() model.Iterator {
	return model.ConversionIterator(
		self.Images.Iterator(),
		new(ImageDoc),
		func(doc interface{}) interface{} {
			return doc.(*ImageDoc).Image.Init()
		},
	)
}