chisel

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(url_, protocol, origin string, port string, token string) (ws *websocket.Conn, err error)

Types

type Client

type Client struct {
	*chshare.Logger
	// contains filtered or unexported fields
}

func NewClient

func NewClient(config *Config) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

Close manual stops the client

func (*Client) Run

func (c *Client) Run() error

Start then Wait

func (*Client) Start

func (c *Client) Start()

Starts the client

func (*Client) Wait

func (c *Client) Wait() error

Wait blocks while the client is running

type Config

type Config struct {
	Fingerprint string
	Auth        string
	KeepAlive   time.Duration
	Server      string
	Remotes     []string
	Token       string
	// contains filtered or unexported fields
}

type Proxy

type Proxy struct {
	*chshare.Logger
	// contains filtered or unexported fields
}

func NewProxy

func NewProxy(c *Client, id int, remote *chshare.Remote) *Proxy

Jump to

Keyboard shortcuts

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