shithub: furgit

ref: 9bd37998c9ea890401b66604806f7d1fe06b9256
dir: /object/fetch/fetcher.go/

View raw version
package fetch

import objectstore "codeberg.org/lindenii/furgit/object/store"

// Fetcher resolves parsed and streamed objects from an object store.
//
// Labels: MT-Safe.
type Fetcher struct {
	store objectstore.ReadingStore
}

// New returns a Fetcher that reads objects from store.
//
// Labels: Deps-Borrowed, Life-Parent.
func New(store objectstore.ReadingStore) *Fetcher {
	return &Fetcher{store: store}
}