Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EventDispatcher ¶ added in v0.1.0
type EventDispatcher struct { Name string DispatcherMethods []EventMethod }
EventDispatcher describes the event dispatcher interface.
func EventDispatcherFromEvents ¶ added in v0.1.0
func EventDispatcherFromEvents(events Events) EventDispatcher
EventDispatcherFromEvents creates an EventDispatcher from Events. nolint: golint
type EventMethod ¶ added in v0.1.0
type EventMethod struct { Name string Event gentypes.TypeRef ReceivesContext bool ReturnsError bool }
EventMethod describes a dispatcher method in an event dispatcher.
type Events ¶ added in v0.1.0
type Events struct { gentypes.TypeRef Methods []EventMethod }
Events describes the event dispatcher interface.
type File ¶ added in v0.1.0
type File struct { gentypes.File // EventDispatchers represents event dispatchers to be generated for matching interfaces. EventDispatchers []EventDispatcher }
File provides information for generating event dispatchers.
Click to show internal directories.
Click to hide internal directories.