Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct { ID string `json:"id" xml:"id"` Source Source `json:"source" xml:"source"` Destination Destination `json:"destination" xml:"destination"` }
type Destination ¶
type Destination struct { Driver string `json:"driver" xml:"driver"` Config DestinationConfig `json:"config" xml:"config"` }
type DestinationConfig ¶
type DestinationConfig interface{}
type EventHandler ¶
type EventHandler struct {
// contains filtered or unexported fields
}
func NewEventHandler ¶
func NewEventHandler(channelUpdatedCallback Updated, channelDeletedCallback Deleted, channelAddedCallback Added) *EventHandler
func (*EventHandler) OnAdded ¶
func (h *EventHandler) OnAdded(c Channel)
func (*EventHandler) OnDeleted ¶
func (h *EventHandler) OnDeleted(c Channel)
func (*EventHandler) OnUpdated ¶
func (h *EventHandler) OnUpdated(c Channel)
type Source ¶
type Source struct { Driver string `json:"driver" xml:"driver"` Config SourceConfig `json:"config" xml:"config"` }
type SourceConfig ¶
type SourceConfig interface{}
Click to show internal directories.
Click to hide internal directories.