gochrome

package module
v0.0.0-...-f5c5df5 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2015 License: MIT Imports: 6 Imported by: 0

README

gochrome

======= Google Chrome Remote Debugging Protocol 1.1 client for Golang.

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TabNotFound = errors.New("Tab not found")

Functions

This section is empty.

Types

type Chrome

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

func New

func New(url string, tab int) (*Chrome, error)

func (*Chrome) Close

func (ch *Chrome) Close() error

func (*Chrome) Off

func (ch *Chrome) Off(e string, c chan Message)

Remove a listener

func (*Chrome) On

func (ch *Chrome) On(e string, c chan Message) (ok bool)

Listen on a certain event

func (*Chrome) Send

func (ch *Chrome) Send(co Command) error

type Command

type Command struct {
	Id     int        `json:"id"`
	Method string     `json:"method"`
	Params Parameters `json:"params"`
}

type Message

type Message struct {
	Method string `json:"method"`
	Params map[string]interface{}
}

type Parameters

type Parameters map[string]interface{}

type Result

type Result struct {
	Id     int                    `json:"id"`
	Error  map[string]interface{} `json:"error"`
	Result map[string]interface{} `json:"result"`
}

Jump to

Keyboard shortcuts

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