Documentation ¶
Index ¶
Constants ¶
View Source
const ( EventTypeInit = EventType("Init") EventTypeRunMediaStart = EventType("RunMediaStart") EventTypeRunMediaEnd = EventType("RunMediaEnd") EventTypeFeedsDownloaded = EventType("FeedsDownloaded") )
Variables ¶
This section is empty.
Functions ¶
func Subscribe ¶
func Subscribe(et EventType, c EventCallback)
Types ¶
type EventCallback ¶
type EventCallbacks ¶
type EventCallbacks map[EventType][]EventCallback
func (EventCallbacks) Emit ¶
func (ec EventCallbacks) Emit(e Event)
func (EventCallbacks) Subscribe ¶
func (ec EventCallbacks) Subscribe(et EventType, c EventCallback)
type FeedsDownloaded ¶
type FeedsDownloaded struct{}
func (*FeedsDownloaded) Type ¶
func (e *FeedsDownloaded) Type() EventType
type RunMediaEnd ¶
type RunMediaEnd struct {
Link string
}
func (*RunMediaEnd) Type ¶
func (e *RunMediaEnd) Type() EventType
type RunMediaStart ¶
type RunMediaStart struct {
Link string
}
func (*RunMediaStart) Type ¶
func (e *RunMediaStart) Type() EventType
Click to show internal directories.
Click to hide internal directories.