client

package
v0.0.0-...-8613b64 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2016 License: MIT Imports: 14 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 {
	common.ProtocolReader
	// contains filtered or unexported fields
}

func NewClient

func NewClient(config *ClientConfig) *Client

func (*Client) Close

func (self *Client) Close()

func (*Client) Connect

func (self *Client) Connect(mapConfig *ConnectionConfig) (*common.Mapping, error)

func (*Client) Login

func (self *Client) Login() error

func (*Client) Wait

func (self *Client) Wait()

type ClientConfig

type ClientConfig struct {
	Ip       string `json:"ip"`
	Port     int    `json:"port"`
	Username string `json:"username"`
	Password string `json:"password"`
	TLS      struct {
		Enabled bool `json:"enabled"`
		Verify  bool `json:"verify"`
	} `json:"tls"`
	Connections []ConnectionConfig
}

type ConnectionConfig

type ConnectionConfig struct {
	Ip         string `json:"ip`
	Port       int    `json:port`
	RemotePort int    `json:remotePort`
	TLS        bool   `json:"tls"`
	IsOpen     bool   `json:"isOpen"`
}

Jump to

Keyboard shortcuts

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