Documentation ¶
Index ¶
- func ChromeFormatFlag(f string) (string, interface{}, error)
- func DebuggerScriptParsed(eventChan chan *debugger.EventScriptParsed, rawResult *b.RawResult, ...)
- func FetchRequestPaused(eventChan chan *fetch.EventRequestPaused, rawResult *b.RawResult, ...)
- func NetworkLoadingFinished(eventChan chan *network.EventLoadingFinished, rawResult *b.RawResult, ...)
- func NetworkRequestWillBeSent(eventChan chan *network.EventRequestWillBeSent, rawResult *b.RawResult, ...)
- func NetworkResponseReceived(eventChan chan *network.EventResponseReceived, rawResult *b.RawResult, ...)
- func PageFrameNavigated(eventChan chan *page.EventFrameNavigated, devtoolsState *DTState, ...)
- func PageJavaScriptDialogOpening(eventChan chan *page.EventJavascriptDialogOpening, wg *sync.WaitGroup, ...)
- func PageLoadEventFired(eventChan chan *page.EventLoadEventFired, loadEventChan chan<- bool, ...)
- func TargetTargetCreated(eventChan chan *target.EventTargetCreated, wg *sync.WaitGroup, ...)
- func VisitPageDevtoolsProtocol(tw *b.TaskWrapper) (*b.RawResult, error)
- type DTState
- type EventChannels
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChromeFormatFlag ¶
ChromeFormatFlag takes a variety of possible flag formats and puts them in a format that chromedp understands (key/value)
func DebuggerScriptParsed ¶
func DebuggerScriptParsed(eventChan chan *debugger.EventScriptParsed, rawResult *b.RawResult, wg *sync.WaitGroup, ctxt context.Context)
DebuggerScriptParsed is the event handler for network requests which have been paused
func FetchRequestPaused ¶
func FetchRequestPaused(eventChan chan *fetch.EventRequestPaused, rawResult *b.RawResult, devtoolsState *DTState, wg *sync.WaitGroup, ctxt context.Context)
FetchRequestPaused is the event handler for network requests which have been paused
func NetworkLoadingFinished ¶
func NetworkLoadingFinished(eventChan chan *network.EventLoadingFinished, rawResult *b.RawResult, wg *sync.WaitGroup, ctxt context.Context, log *logrus.Logger)
NetworkLoadingFinished is the event handler for the Network.LoadingFinished event
func NetworkRequestWillBeSent ¶
func NetworkRequestWillBeSent(eventChan chan *network.EventRequestWillBeSent, rawResult *b.RawResult, wg *sync.WaitGroup, ctxt context.Context)
NetworkRequestWillBeSent is the event handler for the Network.RequestWillBeSent event
func NetworkResponseReceived ¶
func NetworkResponseReceived(eventChan chan *network.EventResponseReceived, rawResult *b.RawResult, wg *sync.WaitGroup, ctxt context.Context)
NetworkResponseReceived is the event handler for Network.ResponseReceived events
func PageFrameNavigated ¶
func PageJavaScriptDialogOpening ¶
func PageJavaScriptDialogOpening(eventChan chan *page.EventJavascriptDialogOpening, wg *sync.WaitGroup, ctxt context.Context, log *logrus.Logger)
PageJavaScriptDialogOpening handles JavaScript dialog events, for now simply dismissing them so data collection can continue
func PageLoadEventFired ¶
func PageLoadEventFired(eventChan chan *page.EventLoadEventFired, loadEventChan chan<- bool, rawResult *b.RawResult, wg *sync.WaitGroup, ctxt context.Context)
PageLoadEventFired is the event handler for the Page.LoadEventFired event
func TargetTargetCreated ¶
func VisitPageDevtoolsProtocol ¶
func VisitPageDevtoolsProtocol(tw *b.TaskWrapper) (*b.RawResult, error)
VisitPageDevtoolsProtocol is a high level function that takes a pre-sanitized TaskWrapper and processes it by opening a DevTools Protocol-compatible browser. It produces a RawResult object, and writes relevant results files to disk as specified by the Task in the TaskWrapper.
Types ¶
type EventChannels ¶
type EventChannels struct { EventSourceMessageReceivedChan chan *network.EventEventSourceMessageReceived // contains filtered or unexported fields }
EventChannels are a wrapper around all of the channels where we will deliver messages from the various events fires by DevTools