Documentation ¶
Index ¶
- func Close()
- func OnReactionCreated(f func(ReactionCreatedMessage)) error
- func PublishReactionCreated(reaction domain.Reaction) error
- func SetReactionEventStore(es ReactionEventStore)
- func SubscribeReactionCreated() (<-chan ReactionCreatedMessage, error)
- type Message
- type NatsEventStore
- type ReactionCreatedMessage
- type ReactionEventStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OnReactionCreated ¶
func OnReactionCreated(f func(ReactionCreatedMessage)) error
OnReactionCreated ...
func PublishReactionCreated ¶
PublishReactionCreated ...
func SetReactionEventStore ¶
func SetReactionEventStore(es ReactionEventStore)
SetReactionEventStore ...
func SubscribeReactionCreated ¶
func SubscribeReactionCreated() (<-chan ReactionCreatedMessage, error)
SubscribeReactionCreated ...
Types ¶
type NatsEventStore ¶
type NatsEventStore struct {
// contains filtered or unexported fields
}
NatsEventStore ...
func (*NatsEventStore) OnReactionCreated ¶
func (e *NatsEventStore) OnReactionCreated(f func(ReactionCreatedMessage)) (err error)
OnReactionCreated ...
func (*NatsEventStore) PublishReactionCreated ¶
func (e *NatsEventStore) PublishReactionCreated(reaction domain.Reaction) error
PublishReactionCreated ...
func (*NatsEventStore) SubscribeReactionCreated ¶
func (e *NatsEventStore) SubscribeReactionCreated() (<-chan ReactionCreatedMessage, error)
SubscribeReactionCreated ...
type ReactionCreatedMessage ¶
type ReactionCreatedMessage struct { ID string PersonID string Details string Description string Type string Date time.Time }
ReactionCreatedMessage is a reaction structures
type ReactionEventStore ¶
type ReactionEventStore interface { Close() PublishReactionCreated(reaction domain.Reaction) error SubscribeReactionCreated() (<-chan ReactionCreatedMessage, error) OnReactionCreated(f func(ReactionCreatedMessage)) error }
ReactionEventStore ...
Click to show internal directories.
Click to hide internal directories.