Example #1
0
// Read implements persistedIndex.
func (x *defRefsIndex) Read(r io.Reader) error {
	phtable, err := phtable.Read(r)
	x.Lock()
	defer x.Unlock()
	x.phtable = phtable
	x.ready = (err == nil)
	return err
}
Example #2
0
// Read implements persistedIndex.
func (x *unitFilesIndex) Read(r io.Reader) error {
	var err error
	x.phtable, err = phtable.Read(r)
	x.ready = (err == nil)
	return err
}
Example #3
0
// Read implements persistedIndex.
func (x *defRefUnitsIndex) Read(r io.Reader) error {
	var err error
	x.phtable, err = phtable.Read(r)
	x.ready = (err == nil)
	return err
}