koi_net.components.knowledge_handlers.basic_manifest_handler

Classes

BasicManifestHandler(log, pipeline, cache)

Normalized event decider based on manifest and cache state.

class koi_net.components.knowledge_handlers.basic_manifest_handler.BasicManifestHandler(log, pipeline, cache)[source]

Bases: KnowledgeHandler

Normalized event decider based on manifest and cache state.

Stops processing for manifests which have the same hash, or aren’t newer than the cached version. Sets the normalized event type to NEW or UPDATE depending on whether the RID was previously known.

Parameters:
cache: Cache
handle(kobj)[source]
Parameters:

kobj (KnowledgeObject)

handler_type: HandlerType = 'manifest'