Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventHandler ¶
type EventHandler func(m *cloudevents.Event)
type EventManager ¶
type EventManager struct { Broker *nats.Conn // contains filtered or unexported fields }
func (*EventManager) Listen ¶
func (m *EventManager) Listen(subject string, cb EventHandler) error
func (*EventManager) Publish ¶
func (m *EventManager) Publish(subject, t string, data interface{}) error
Click to show internal directories.
Click to hide internal directories.