Documentation ¶
Overview ¶
Package console implements the Console domain. This domain is deprecated - use Runtime or Log instead.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Message ¶
type Message struct { // Source Message source. // // Values: "xml", "javascript", "network", "console-api", "storage", "appcache", "rendering", "security", "other", "deprecation", "worker". Source string `json:"source"` // Level Message severity. // // Values: "log", "warning", "error", "debug", "info". Level string `json:"level"` Text string `json:"text"` // Message text. URL *string `json:"url,omitempty"` // URL of the message origin. Line *int `json:"line,omitempty"` // Line number in the resource that generated this message (1-based). Column *int `json:"column,omitempty"` // Column number in the resource that generated this message (1-based). }
Message Console message.
type MessageAddedClient ¶
type MessageAddedClient interface { // Recv calls RecvMsg on rpcc.Stream, blocks until the event is // triggered, context canceled or connection closed. Recv() (*MessageAddedReply, error) rpcc.Stream }
MessageAddedClient is a client for MessageAdded events. Issued when new console message is added.
type MessageAddedReply ¶
type MessageAddedReply struct {
Message Message `json:"message"` // Console message that has been added.
}
MessageAddedReply is the reply for MessageAdded events.
Click to show internal directories.
Click to hide internal directories.