console

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2017 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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