console

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2017 License: MIT Imports: 3 Imported by: 0

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 string  `json:"source"`           // Message source.
	Level  string  `json:"level"`            // Message severity.
	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