msg

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 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

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

deprecated will block until connection close

func JoinMore

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

join two connections and do some operations

Types

type ControlReq

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"`
	PoolCount     int64  `json:"pool_count"`

	// 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"`
	HostHeaderRewrite string   `json:"host_header_rewrite"`
	Timestamp         int64    `json:"timestamp"`
}

messages between control connections of frpc and frps

type ControlRes

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