msg

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Join added in v0.7.0

func Join(c1 *conn.Conn, c2 *conn.Conn)

will block until connection close

func JoinMore added in v0.7.0

func JoinMore(c1 *conn.Conn, c2 *conn.Conn, conf config.BaseConf)

join two connections and do some operations

Types

type ControlReq added in v0.3.0

type ControlReq struct {
	Type          int64  `json:"type"`
	ProxyName     string `json:"proxy_name"`
	AuthKey       string `json:"auth_key"`
	UseEncryption bool   `json:"use_encryption"`
	UseGzip       bool   `json:"use_gzip"`

	// configures used if privilege_mode is enabled
	PrivilegeMode bool     `json:"privilege_mode"`
	PrivilegeKey  string   `json:"privilege_key"`
	ProxyType     string   `json:"proxy_type"`
	RemotePort    int64    `json:"remote_port"`
	CustomDomains []string `json:"custom_domains, omitempty"`
	Timestamp     int64    `json:"timestamp"`
}

messages between control connections of frpc and frps

type ControlRes added in v0.3.0

type ControlRes struct {
	Type int64  `json:"type"`
	Code int64  `json:"code"`
	Msg  string `json:"msg"`
}

type GeneralRes

type GeneralRes struct {
	Code int64  `json:"code"`
	Msg  string `json:"msg"`
}

Jump to

Keyboard shortcuts

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