Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PublishBookCreated ¶
func SetEventStore ¶
func SetEventStore(es EventStore)
Types ¶
type BookCreatedMessage ¶
func (*BookCreatedMessage) Key ¶
func (m *BookCreatedMessage) Key() string
type EventStore ¶
type NatsEventStore ¶
type NatsEventStore struct {
// contains filtered or unexported fields
}
func NewNats ¶
func NewNats(url string) (*NatsEventStore, error)
func (*NatsEventStore) Close ¶
func (n *NatsEventStore) Close()
func (*NatsEventStore) PublishBookCreated ¶
func (n *NatsEventStore) PublishBookCreated(book schema.Book) error
Click to show internal directories.
Click to hide internal directories.