Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMQTTBroker ¶
Types ¶
type Config ¶
type Config struct {
Host string `json:"host"`
Port int `json:"port"`
UserName string `json:"username"`
Password string `json:"password"`
ClientID string `json:"clientId"`
CaCert string `json:"caCert"`
ClientCert string `json:"clientCert"`
PrivateKey string `json:"privateKey"`
Control string `json:"control"`
}
func ReadConfig ¶
type MQTunnel ¶
type MQTunnel struct {
// contains filtered or unexported fields
}
MQTunnel is a main component of mqtunnel.
func NewMQTunnel ¶
type TCPConnection ¶
type TCPConnection struct {
// contains filtered or unexported fields
}
func NewTCPConnection ¶
func NewTCPConnection(port int, tun *Tunnel) (*TCPConnection, error)
type TCPListener ¶
type TCPListener struct {
// contains filtered or unexported fields
}
func NewTCPListener ¶
func NewTCPListener(conf Config, port int) (*TCPListener, error)
type Tunnel ¶
type Tunnel struct {
ID string
LocalPort int
LocalTopic string
RemotePort int
RemoteTopic string
// contains filtered or unexported fields
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.