class Movie::Persistence::DurableStateProjection

Defined in:

movie/persistence/projection.cr

Constructors

Instance Method Summary

Constructor Detail

def self.for(type : T.class, name : String) : self forall T #

[View source]
def self.new(name : String, entity_type : String | Nil = nil) #

[View source]

Instance Method Detail

def entity_type : String | Nil #

[View source]
def handler_for(state : DurableStateEnvelope) : ProjectionHandler #

[View source]
def id : ProjectionId #

[View source]
def name : String #

[View source]
def on(type : S.class, manifest : String = type.name, &handler : S, DurableStateEnvelope, ProjectionTransaction -> ) : self forall S #

[View source]
def on_delete(&handler : DurableStateEnvelope, ProjectionTransaction -> ) : self #

[View source]