resolver.go

 1package bootstrap
 2
 3// Resolved is a minimal interface on which Resolver operates on.
 4// Notably, this operates on Entity and Excerpt in the cache.
 5type Resolved interface {
 6	// Id returns the object identifier.
 7	Id() Id
 8}
 9
10// Resolver is an interface to find an Entity from its Id
11type Resolver interface {
12	Resolve(id Id) (Resolved, error)
13}