Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTopicHandler ¶
func AddTopicHandler(topic string, router chi.Router, handler func(event *CloudEvent) error)
AddTopicHandler is a way to plug in a handler for receiving messages from a Dapr pub-sub topic It's pretty simple and the handler is passed the CloudEvent data, for them to decode
Types ¶
type CloudEvent ¶
type CloudEvent struct { ID string `json:"id"` Data interface{} `json:"data"` }
Click to show internal directories.
Click to hide internal directories.