log

package
v0.0.0-...-076f285 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClearCommand

type ClearCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*ClearCommand) Initalize

func (c *ClearCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*ClearCommand) Respond

func (c *ClearCommand) Respond()

func (*ClearCommand) RespondWithError

func (c *ClearCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type ClearCommandFn

type ClearCommandFn struct {
	// contains filtered or unexported fields
}

func (*ClearCommandFn) Load

func (a *ClearCommandFn) Load() func(ClearCommand)

func (*ClearCommandFn) Store

func (a *ClearCommandFn) Store(fn func(ClearCommand))

type ClearReturn

type ClearReturn struct {
}

type DisableCommand

type DisableCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*DisableCommand) Initalize

func (c *DisableCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*DisableCommand) Respond

func (c *DisableCommand) Respond()

func (*DisableCommand) RespondWithError

func (c *DisableCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type DisableCommandFn

type DisableCommandFn struct {
	// contains filtered or unexported fields
}

func (*DisableCommandFn) Load

func (a *DisableCommandFn) Load() func(DisableCommand)

func (*DisableCommandFn) Store

func (a *DisableCommandFn) Store(fn func(DisableCommand))

type DisableReturn

type DisableReturn struct {
}

type EnableCommand

type EnableCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*EnableCommand) Initalize

func (c *EnableCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*EnableCommand) Respond

func (c *EnableCommand) Respond()

func (*EnableCommand) RespondWithError

func (c *EnableCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type EnableCommandFn

type EnableCommandFn struct {
	// contains filtered or unexported fields
}

func (*EnableCommandFn) Load

func (a *EnableCommandFn) Load() func(EnableCommand)

func (*EnableCommandFn) Store

func (a *EnableCommandFn) Store(fn func(EnableCommand))

type EnableReturn

type EnableReturn struct {
}

type EntryAddedEvent

type EntryAddedEvent struct {
	Entry LogEntry `json:"entry"` // The entry.
}

type LogAgent

type LogAgent struct {
	// contains filtered or unexported fields
}

func NewAgent

func NewAgent(conn *shared.Connection) *LogAgent

func (*LogAgent) FireEntryAdded

func (agent *LogAgent) FireEntryAdded(event EntryAddedEvent)

Dispatchable Events

func (*LogAgent) FireEntryAddedOnTarget

func (agent *LogAgent) FireEntryAddedOnTarget(targetId string, event EntryAddedEvent)

func (*LogAgent) Name

func (agent *LogAgent) Name() string

func (*LogAgent) ProcessCommand

func (agent *LogAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)

func (*LogAgent) SetClearHandler

func (agent *LogAgent) SetClearHandler(handler func(ClearCommand))

func (*LogAgent) SetDisableHandler

func (agent *LogAgent) SetDisableHandler(handler func(DisableCommand))

func (*LogAgent) SetEnableHandler

func (agent *LogAgent) SetEnableHandler(handler func(EnableCommand))

Commands Sent From Frontend

func (*LogAgent) SetStartViolationsReportHandler

func (agent *LogAgent) SetStartViolationsReportHandler(handler func(StartViolationsReportCommand))

func (*LogAgent) SetStopViolationsReportHandler

func (agent *LogAgent) SetStopViolationsReportHandler(handler func(StopViolationsReportCommand))

type LogEntry

type LogEntry struct {
	Source           LogEntrySourceEnum  `json:"source"`                     // Log entry source.
	Level            LogEntryLevelEnum   `json:"level"`                      // Log entry severity.
	Text             string              `json:"text"`                       // Logged text.
	Timestamp        runtime.Timestamp   `json:"timestamp"`                  // 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.
}

type LogEntryLevelEnum

type LogEntryLevelEnum string
const (
	LogEntryLevelVerbose LogEntryLevelEnum = "verbose"
	LogEntryLevelInfo    LogEntryLevelEnum = "info"
	LogEntryLevelWarning LogEntryLevelEnum = "warning"
	LogEntryLevelError   LogEntryLevelEnum = "error"
)

type LogEntrySourceEnum

type LogEntrySourceEnum string
const (
	LogEntrySourceXml          LogEntrySourceEnum = "xml"
	LogEntrySourceJavascript   LogEntrySourceEnum = "javascript"
	LogEntrySourceNetwork      LogEntrySourceEnum = "network"
	LogEntrySourceStorage      LogEntrySourceEnum = "storage"
	LogEntrySourceAppcache     LogEntrySourceEnum = "appcache"
	LogEntrySourceRendering    LogEntrySourceEnum = "rendering"
	LogEntrySourceSecurity     LogEntrySourceEnum = "security"
	LogEntrySourceDeprecation  LogEntrySourceEnum = "deprecation"
	LogEntrySourceWorker       LogEntrySourceEnum = "worker"
	LogEntrySourceViolation    LogEntrySourceEnum = "violation"
	LogEntrySourceIntervention LogEntrySourceEnum = "intervention"
	LogEntrySourceOther        LogEntrySourceEnum = "other"
)

type StartViolationsReportCommand

type StartViolationsReportCommand struct {
	DestinationTargetID string

	Config []ViolationSetting `json:"config"` // Configuration for violations.
	// contains filtered or unexported fields
}

func (*StartViolationsReportCommand) Initalize

func (c *StartViolationsReportCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*StartViolationsReportCommand) Respond

func (c *StartViolationsReportCommand) Respond()

func (*StartViolationsReportCommand) RespondWithError

func (c *StartViolationsReportCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type StartViolationsReportCommandFn

type StartViolationsReportCommandFn struct {
	// contains filtered or unexported fields
}

func (*StartViolationsReportCommandFn) Load

func (*StartViolationsReportCommandFn) Store

type StartViolationsReportReturn

type StartViolationsReportReturn struct {
}

type StopViolationsReportCommand

type StopViolationsReportCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*StopViolationsReportCommand) Initalize

func (c *StopViolationsReportCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*StopViolationsReportCommand) Respond

func (c *StopViolationsReportCommand) Respond()

func (*StopViolationsReportCommand) RespondWithError

func (c *StopViolationsReportCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type StopViolationsReportCommandFn

type StopViolationsReportCommandFn struct {
	// contains filtered or unexported fields
}

func (*StopViolationsReportCommandFn) Load

func (*StopViolationsReportCommandFn) Store

type StopViolationsReportReturn

type StopViolationsReportReturn struct {
}

type ViolationSetting

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

type ViolationSettingNameEnum

type ViolationSettingNameEnum string
const (
	ViolationSettingNameLongTask          ViolationSettingNameEnum = "longTask"
	ViolationSettingNameLongLayout        ViolationSettingNameEnum = "longLayout"
	ViolationSettingNameBlockedEvent      ViolationSettingNameEnum = "blockedEvent"
	ViolationSettingNameBlockedParser     ViolationSettingNameEnum = "blockedParser"
	ViolationSettingNameDiscouragedAPIUse ViolationSettingNameEnum = "discouragedAPIUse"
	ViolationSettingNameHandler           ViolationSettingNameEnum = "handler"
	ViolationSettingNameRecurringHandler  ViolationSettingNameEnum = "recurringHandler"
)

Jump to

Keyboard shortcuts

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