console

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WebsocketCallback

func WebsocketCallback(ws *websocket.Conn, resp *http.Response, err error) error

Types

type Console

type Console struct {
}

func (*Console) FlagSet

func (c *Console) FlagSet() *flag.FlagSet

func (*Console) Run

func (c *Console) Run(flags *flag.FlagSet) int

func (*Console) Usage

func (c *Console) Usage() string

type RoundTripCallback

type RoundTripCallback func(conn *websocket.Conn, resp *http.Response, err error) error

type WebsocketRoundTripper

type WebsocketRoundTripper struct {
	Dialer *websocket.Dialer
	Do     RoundTripCallback
}

func (*WebsocketRoundTripper) RoundTrip

func (d *WebsocketRoundTripper) RoundTrip(r *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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