gwebsocket

package
v0.0.0-...-5679902 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BUFFER_SIZE int    = 8192
	PING_OPCODE string = "ping"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GuacamoleWebSocketTunnelEndpoint

type GuacamoleWebSocketTunnelEndpoint struct {
	// contains filtered or unexported fields
}

func CreateTunnelEndpoint

func CreateTunnelEndpoint(conn *ws.Conn, socket *gn.GuacamoleTunnel) (ret *GuacamoleWebSocketTunnelEndpoint)

func (*GuacamoleWebSocketTunnelEndpoint) CloseConnection

func (te *GuacamoleWebSocketTunnelEndpoint) CloseConnection(guacStatusCode, webSocketCode int) (err error)

func (*GuacamoleWebSocketTunnelEndpoint) CloseConnectionWithStatus

func (te *GuacamoleWebSocketTunnelEndpoint) CloseConnectionWithStatus(guacStatus gc.GuacamoleStatus) (err error)

func (GuacamoleWebSocketTunnelEndpoint) Filter

func (*GuacamoleWebSocketTunnelEndpoint) SendGuacamoleInstruction

func (te *GuacamoleWebSocketTunnelEndpoint) SendGuacamoleInstruction(instruction gp.GuacamoleInstruction) (err error)

func (*GuacamoleWebSocketTunnelEndpoint) SendInstruction

func (te *GuacamoleWebSocketTunnelEndpoint) SendInstruction(instruction string) (err error)

func (*GuacamoleWebSocketTunnelEndpoint) Tunnel

type GuacamoleWebSocketTunnelEndpointInterface

type GuacamoleWebSocketTunnelEndpointInterface interface {

	//OnOpen(*ws.Conn)
	OnMessage(message string)
	//OnClose(*ws.Conn)
	Tunnel() gn.GuacamoleTunnel
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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