Documentation
¶
Index ¶
Constants ¶
View Source
const ( EventTypeInit = EventType("Init") EventTypeRunMediaStart = EventType("RunMediaStart") EventTypeRunMediaEnd = EventType("RunMediaEnd") EventTypeFeedsDownloaded = EventType("FeedsDownloaded") EventTypeArticleOpened = EventType("ArticleOpened") EventTypeLinkOpened = EventType("LinkOpened") )
Variables ¶
This section is empty.
Functions ¶
func Subscribe ¶
func Subscribe(et EventType, c EventCallback)
Types ¶
type ArticleOpened ¶
func (*ArticleOpened) Type ¶
func (e *ArticleOpened) Type() EventType
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 LinkOpened ¶
func (*LinkOpened) Type ¶
func (e *LinkOpened) Type() EventType
type RunMediaEnd ¶
func (*RunMediaEnd) Type ¶
func (e *RunMediaEnd) Type() EventType
Click to show internal directories.
Click to hide internal directories.