console

package
v0.0.0-...-4fec7a0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2017 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Overview

This domain is deprecated - use Runtime or Log instead.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClearMessagesRequest

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

func (*ClearMessagesRequest) Do

func (r *ClearMessagesRequest) Do() error

type Client

type Client struct {
	*rpc.Client
}

This domain is deprecated - use Runtime or Log instead.

func (*Client) ClearMessages

func (d *Client) ClearMessages() *ClearMessagesRequest

Does nothing.

func (*Client) Disable

func (d *Client) Disable() *DisableRequest

Disables console domain, prevents further console messages from being reported to the client.

func (*Client) Enable

func (d *Client) Enable() *EnableRequest

Enables console domain, sends the messages collected so far to the client by means of the <code>messageAdded</code> notification.

type ConsoleMessage

type ConsoleMessage struct {
	// Message source.
	Source string `json:"source"`

	// Message severity.
	Level string `json:"level"`

	// Message text.
	Text string `json:"text"`

	// URL of the message origin. (optional)
	URL string `json:"url,omitempty"`

	// Line number in the resource that generated this message (1-based). (optional)
	Line int `json:"line,omitempty"`

	// Column number in the resource that generated this message (1-based). (optional)
	Column int `json:"column,omitempty"`
}

type DisableRequest

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

func (*DisableRequest) Do

func (r *DisableRequest) Do() error

type EnableRequest

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

func (*EnableRequest) Do

func (r *EnableRequest) Do() error

type MessageAddedEvent

type MessageAddedEvent struct {
	// Console message that has been added.
	Message *ConsoleMessage `json:"message"`
}

Issued when new console message is added.

Jump to

Keyboard shortcuts

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