Documentation ¶
Rendered for js/wasm
Index ¶
- func CloseConnection(id int, onCloseCallback func()) error
- func InitLib()
- func Log(format string, args ...interface{})
- func NewConnection(ws2sHost string, host string, port int, onConnect func(), ...) (int, error)
- func ReadConnection(id int, onReadCallback func(data []byte, err string)) ([]byte, error)
- func WriteConnection(id int, data []byte, onWriteCallback func(n int, err string)) (int, error)
- type OptionalParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseConnection ¶
func NewConnection ¶
func ReadConnection ¶
Types ¶
type OptionalParams ¶
type OptionalParams struct { Host string `json:"host,omitempty"` Port int `json:"port,omitempty"` SSHHost string `json:"ssh_host,omitempty"` SSHPort int `json:"ssh_port,omitempty"` SSHUsername string `json:"ssh_username,omitempty"` SSHPassword string `json:"ssh_password,omitempty"` SSHPrivateKey string `json:"ssh_private_key,omitempty"` SSHPrivateKeyPassword string `json:"ssh_private_key_password,omitempty"` }
Click to show internal directories.
Click to hide internal directories.