log

package
v0.0.0-...-9e9a0cf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package log provides the Chrome Debugging Protocol commands, types, and events for the Log domain.

Provides access to log entries.

Generated by the chromedp-gen command.

Index

Constants

This section is empty.

Variables

EventTypes all event types in the domain.

Functions

This section is empty.

Types

type ClearParams

type ClearParams struct{}

ClearParams clears the log.

func Clear

func Clear() *ClearParams

Clear clears the log.

func (*ClearParams) Do

func (p *ClearParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes Log.clear against the provided context and target handler.

func (ClearParams) MarshalEasyJSON

func (v ClearParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ClearParams) MarshalJSON

func (v ClearParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ClearParams) UnmarshalEasyJSON

func (v *ClearParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ClearParams) UnmarshalJSON

func (v *ClearParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DisableParams

type DisableParams struct{}

DisableParams disables log domain, prevents further log entries from being reported to the client.

func Disable

func Disable() *DisableParams

Disable disables log domain, prevents further log entries from being reported to the client.

func (*DisableParams) Do

func (p *DisableParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes Log.disable against the provided context and target handler.

func (DisableParams) MarshalEasyJSON

func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableParams) MarshalJSON

func (v DisableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DisableParams) UnmarshalEasyJSON

func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableParams) UnmarshalJSON

func (v *DisableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EnableParams

type EnableParams struct{}

EnableParams enables log domain, sends the entries collected so far to the client by means of the entryAdded notification.

func Enable

func Enable() *EnableParams

Enable enables log domain, sends the entries collected so far to the client by means of the entryAdded notification.

func (*EnableParams) Do

func (p *EnableParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes Log.enable against the provided context and target handler.

func (EnableParams) MarshalEasyJSON

func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableParams) MarshalJSON

func (v EnableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EnableParams) UnmarshalEasyJSON

func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableParams) UnmarshalJSON

func (v *EnableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Entry

type Entry struct {
	Source           Source              `json:"source,omitempty"`           // Log entry source.
	Level            Level               `json:"level,omitempty"`            // Log entry severity.
	Text             string              `json:"text,omitempty"`             // Logged text.
	Timestamp        cdp.Timestamp       `json:"timestamp,omitempty"`        // Timestamp when this entry was added.
	URL              string              `json:"url,omitempty"`              // URL of the resource if known.
	LineNumber       int64               `json:"lineNumber,omitempty"`       // Line number in the resource.
	StackTrace       *runtime.StackTrace `json:"stackTrace,omitempty"`       // JavaScript stack trace.
	NetworkRequestID network.RequestID   `json:"networkRequestId,omitempty"` // Identifier of the network request associated with this entry.
	WorkerID         string              `json:"workerId,omitempty"`         // Identifier of the worker associated with this entry.
}

Entry log entry.

func (Entry) MarshalEasyJSON

func (v Entry) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Entry) MarshalJSON

func (v Entry) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Entry) UnmarshalEasyJSON

func (v *Entry) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Entry) UnmarshalJSON

func (v *Entry) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventEntryAdded

type EventEntryAdded struct {
	Entry *Entry `json:"entry,omitempty"` // The entry.
}

EventEntryAdded issued when new message was logged.

func (EventEntryAdded) MarshalEasyJSON

func (v EventEntryAdded) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventEntryAdded) MarshalJSON

func (v EventEntryAdded) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventEntryAdded) UnmarshalEasyJSON

func (v *EventEntryAdded) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventEntryAdded) UnmarshalJSON

func (v *EventEntryAdded) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Level

type Level string

Level log entry severity.

const (
	LevelVerbose Level = "verbose"
	LevelInfo    Level = "info"
	LevelWarning Level = "warning"
	LevelError   Level = "error"
)

Level values.

func (Level) MarshalEasyJSON

func (t Level) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (Level) MarshalJSON

func (t Level) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (Level) String

func (t Level) String() string

String returns the Level as string value.

func (*Level) UnmarshalEasyJSON

func (t *Level) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*Level) UnmarshalJSON

func (t *Level) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type Source

type Source string

Source log entry source.

const (
	SourceXML          Source = "xml"
	SourceJavascript   Source = "javascript"
	SourceNetwork      Source = "network"
	SourceStorage      Source = "storage"
	SourceAppcache     Source = "appcache"
	SourceRendering    Source = "rendering"
	SourceSecurity     Source = "security"
	SourceDeprecation  Source = "deprecation"
	SourceWorker       Source = "worker"
	SourceViolation    Source = "violation"
	SourceIntervention Source = "intervention"
	SourceOther        Source = "other"
)

Source values.

func (Source) MarshalEasyJSON

func (t Source) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (Source) MarshalJSON

func (t Source) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (Source) String

func (t Source) String() string

String returns the Source as string value.

func (*Source) UnmarshalEasyJSON

func (t *Source) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*Source) UnmarshalJSON

func (t *Source) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type StartViolationsReportParams

type StartViolationsReportParams struct {
	Config []*ViolationSetting `json:"config"` // Configuration for violations.
}

StartViolationsReportParams start violation reporting.

func StartViolationsReport

func StartViolationsReport(config []*ViolationSetting) *StartViolationsReportParams

StartViolationsReport start violation reporting.

parameters:

config - Configuration for violations.

func (*StartViolationsReportParams) Do

Do executes Log.startViolationsReport against the provided context and target handler.

func (StartViolationsReportParams) MarshalEasyJSON

func (v StartViolationsReportParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StartViolationsReportParams) MarshalJSON

func (v StartViolationsReportParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StartViolationsReportParams) UnmarshalEasyJSON

func (v *StartViolationsReportParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StartViolationsReportParams) UnmarshalJSON

func (v *StartViolationsReportParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type StopViolationsReportParams

type StopViolationsReportParams struct{}

StopViolationsReportParams stop violation reporting.

func StopViolationsReport

func StopViolationsReport() *StopViolationsReportParams

StopViolationsReport stop violation reporting.

func (*StopViolationsReportParams) Do

Do executes Log.stopViolationsReport against the provided context and target handler.

func (StopViolationsReportParams) MarshalEasyJSON

func (v StopViolationsReportParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StopViolationsReportParams) MarshalJSON

func (v StopViolationsReportParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StopViolationsReportParams) UnmarshalEasyJSON

func (v *StopViolationsReportParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StopViolationsReportParams) UnmarshalJSON

func (v *StopViolationsReportParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Violation

type Violation string

Violation violation type.

const (
	ViolationLongTask          Violation = "longTask"
	ViolationLongLayout        Violation = "longLayout"
	ViolationBlockedEvent      Violation = "blockedEvent"
	ViolationBlockedParser     Violation = "blockedParser"
	ViolationDiscouragedAPIUse Violation = "discouragedAPIUse"
	ViolationHandler           Violation = "handler"
	ViolationRecurringHandler  Violation = "recurringHandler"
)

Violation values.

func (Violation) MarshalEasyJSON

func (t Violation) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (Violation) MarshalJSON

func (t Violation) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (Violation) String

func (t Violation) String() string

String returns the Violation as string value.

func (*Violation) UnmarshalEasyJSON

func (t *Violation) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*Violation) UnmarshalJSON

func (t *Violation) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type ViolationSetting

type ViolationSetting struct {
	Name      Violation `json:"name,omitempty"`      // Violation type.
	Threshold float64   `json:"threshold,omitempty"` // Time threshold to trigger upon.
}

ViolationSetting violation configuration setting.

func (ViolationSetting) MarshalEasyJSON

func (v ViolationSetting) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ViolationSetting) MarshalJSON

func (v ViolationSetting) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ViolationSetting) UnmarshalEasyJSON

func (v *ViolationSetting) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ViolationSetting) UnmarshalJSON

func (v *ViolationSetting) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL