console

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2018 License: MIT Imports: 3 Imported by: 8

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

func NewClient

func NewClient(conn *rpcc.Conn) *domainClient

NewClient returns a client for the Console domain with the connection set to conn.

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.

Jump to

Keyboard shortcuts

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