Documentation ¶
Index ¶
- Constants
- func DispatchEvent(ctx context.Context, client *cdp.Client, objectID runtime.RemoteObjectID, ...) (values.Boolean, error)
- type Event
- type EventBroker
- func (broker *EventBroker) AddEventListener(event Event, listener EventListener)
- func (broker *EventBroker) Close() error
- func (broker *EventBroker) ListenerCount(event Event) int
- func (broker *EventBroker) RemoveEventListener(event Event, listener EventListener)
- func (broker *EventBroker) Start() error
- func (broker *EventBroker) Stop() error
- type EventListener
- type Function
- type WaitTask
Constants ¶
View Source
const DefaultPolling = time.Millisecond * time.Duration(200)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EventBroker ¶
type EventBroker struct {
// contains filtered or unexported fields
}
func NewEventBroker ¶
func NewEventBroker( onLoad page.LoadEventFiredClient, onReload dom.DocumentUpdatedClient, onAttrModified dom.AttributeModifiedClient, onAttrRemoved dom.AttributeRemovedClient, onChildNodeCountUpdated dom.ChildNodeCountUpdatedClient, onChildNodeInserted dom.ChildNodeInsertedClient, onChildNodeRemoved dom.ChildNodeRemovedClient, ) *EventBroker
func (*EventBroker) AddEventListener ¶
func (broker *EventBroker) AddEventListener(event Event, listener EventListener)
func (*EventBroker) Close ¶
func (broker *EventBroker) Close() error
func (*EventBroker) ListenerCount ¶ added in v0.3.0
func (broker *EventBroker) ListenerCount(event Event) int
func (*EventBroker) RemoveEventListener ¶
func (broker *EventBroker) RemoveEventListener(event Event, listener EventListener)
func (*EventBroker) Start ¶
func (broker *EventBroker) Start() error
func (*EventBroker) Stop ¶
func (broker *EventBroker) Stop() error
type EventListener ¶
type EventListener func(message interface{})
type WaitTask ¶
type WaitTask struct {
// contains filtered or unexported fields
}
func NewEvalWaitTask ¶
func NewWaitTask ¶
Click to show internal directories.
Click to hide internal directories.