package identity import ( "github.com/git-bug/git-bug/entity" "github.com/git-bug/git-bug/repository" ) var _ entity.Resolver = &SimpleResolver{} // SimpleResolver is a Resolver loading Identities directly from a Repo type SimpleResolver struct { repo repository.Repo } func NewSimpleResolver(repo repository.Repo) *SimpleResolver { return &SimpleResolver{repo: repo} } func (r *SimpleResolver) Resolve(id entity.Id) (entity.Resolved, error) { return ReadLocal(r.repo, id) }