Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // MetaDataNotFoundError refers to error MetaDataNotFoundError = errors.New("Metadata not found") )
Functions ¶
This section is empty.
Types ¶
type EntityRec ¶
type EntityRec struct {
// contains filtered or unexported fields
}
EntityRec refers entity info
type MDQ ¶
type MDQ struct { config.MdDb Cache map[string]*MdXp Lock sync.RWMutex // contains filtered or unexported fields }
MDQ refers to metadata query
func (*MDQ) MDQ ¶
MDQ looks up an entity using the supplied feed and key. The key can be an entityID or a location, optionally in {sha1} format It returns a non nil err if the entity is not found and the metadata and a hash/etag over the content if it is. The hash can be used to decide if a cached dom object is still valid, This might be an optimization as the database lookup is much faster that the parsing.
Click to show internal directories.
Click to hide internal directories.