tunnel

package
v0.0.0-...-89c5f36 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2014 License: ISC Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Session
}

func NewClient

func NewClient(address, port string) (*Client, error)

type Response

type Response struct {
	Error  string `json:"error"`
	Url    string `json:"url"`
	Digest string `json:"digest"`
}

hack to share between server and client

type Server

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

func NewServer

func NewServer(listenAddrs []string, cert, key string,
	wsCallback func(*Session),
	httpCallback func(http.ResponseWriter, *http.Request)) (*Server, error)

type Session

type Session struct {
	Conn *websocket.Conn // websocket
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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