Versions in this module Expand all Collapse all v1 v1.0.1 May 14, 2023 v1.0.0 Mar 29, 2023 Changes in this version + const EventTypeArticleOpened + const EventTypeFeedsDownloaded + const EventTypeInit + const EventTypeLinkOpened + const EventTypeRunMediaEnd + const EventTypeRunMediaStart + func Emit(e Event) + func New(L *lua.LState) lua.LValue + func Subscribe(et EventType, c EventCallback) + type ArticleOpened struct + Card func(*lua.LState) lua.LValue + Link string + func (e *ArticleOpened) Type() EventType + type Event interface + Type func() EventType + type EventCallback func(e Event) error + type EventCallbacks map[EventType][]EventCallback + func (ec EventCallbacks) Emit(e Event) + func (ec EventCallbacks) Subscribe(et EventType, c EventCallback) + type EventType string + type FeedsDownloaded struct + func (e *FeedsDownloaded) Type() EventType + type Init struct + func (e *Init) Type() EventType + type LinkOpened struct + Card func(*lua.LState) lua.LValue + Link string + func (e *LinkOpened) Type() EventType + type RunMediaEnd struct + Card func(*lua.LState) lua.LValue + Link string + func (e *RunMediaEnd) Type() EventType + type RunMediaStart struct + Card func(*lua.LState) lua.LValue + Link string + func (e *RunMediaStart) Type() EventType