Documentation ¶
Index ¶
Constants ¶
View Source
const ( Create messageType = "create" Update messageType = "update" Delete messageType = "delete" )
Variables ¶
This section is empty.
Functions ¶
func NewTopicManager ¶
Types ¶
type Message ¶
type Message struct { // Type: optional create/delete/update Type messageType `json:"type,omitempty"` Resource Resource `json:"resource,omitempty"` }
type Resource ¶
type Resource struct { ResourceType string `json:"rtype,omitempty"` ResourceId string `json:"rid,omitempty"` Values map[string]interface{} `json:"values,omitempty"` }
func NewResource ¶
func (Resource) GetTopicResource ¶
Click to show internal directories.
Click to hide internal directories.