Versions in this module Expand all Collapse all v1 v1.0.4 Mar 18, 2021 Changes in this version type ServerConf + ReceiveBuf int + SendBuf int v1.0.3 Aug 31, 2020 v1.0.2 Aug 31, 2020 v1.0.1 Aug 30, 2020 v1.0.0 Aug 22, 2020 Changes in this version + const HTTP_CAPABILITY_IDLE_TIMEOUT + const HTTP_CAPABILITY_MESSAGING_CONSENT_SIGN + const HTTP_CAPABILITY_MESSAGING_SERVICE_MSG + const HTTP_CAPABILITY_REAUTH + const HTTP_CAPABILITY_TYPE_QUAR_SOH + const HTTP_CAPABILITY_UDP_TRANSPORT + const HTTP_CHANNEL_RESPONSE_FIELD_AUTHNCOOKIE + const HTTP_CHANNEL_RESPONSE_FIELD_CHANNELID + const HTTP_CHANNEL_RESPONSE_FIELD_UDPPORT + const HTTP_EXTENDED_AUTH_NONE + const HTTP_EXTENDED_AUTH_PAA + const HTTP_EXTENDED_AUTH_SC + const HTTP_EXTENDED_AUTH_SSPI_NTLM + const HTTP_TUNNEL_AUTH_RESPONSE_FIELD_IDLE_TIMEOUT + const HTTP_TUNNEL_AUTH_RESPONSE_FIELD_REDIR_FLAGS + const HTTP_TUNNEL_AUTH_RESPONSE_FIELD_SOH_RESPONSE + const HTTP_TUNNEL_PACKET_FIELD_PAA_COOKIE + const HTTP_TUNNEL_REDIR_DISABLE_ALL + const HTTP_TUNNEL_REDIR_DISABLE_CLIPBOARD + const HTTP_TUNNEL_REDIR_DISABLE_DRIVE + const HTTP_TUNNEL_REDIR_DISABLE_PNP + const HTTP_TUNNEL_REDIR_DISABLE_PORT + const HTTP_TUNNEL_REDIR_DISABLE_PRINTER + const HTTP_TUNNEL_REDIR_ENABLE_ALL + const HTTP_TUNNEL_RESPONSE_FIELD_CAPS + const HTTP_TUNNEL_RESPONSE_FIELD_CONSENT_MSG + const HTTP_TUNNEL_RESPONSE_FIELD_SOH_REQ + const HTTP_TUNNEL_RESPONSE_FIELD_TUNNEL_ID + const MajorVersion + const MethodRDGIN + const MethodRDGOUT + const MinorVersion + const PKT_TYPE_CHANNEL_CREATE + const PKT_TYPE_CHANNEL_RESPONSE + const PKT_TYPE_CLOSE_CHANNEL + const PKT_TYPE_CLOSE_CHANNEL_RESPONSE + const PKT_TYPE_DATA + const PKT_TYPE_EXTENDED_AUTH_MSG + const PKT_TYPE_HANDSHAKE_REQUEST + const PKT_TYPE_HANDSHAKE_RESPONSE + const PKT_TYPE_KEEPALIVE + const PKT_TYPE_REAUTH_MESSAGE + const PKT_TYPE_SERVICE_MESSAGE + const PKT_TYPE_TUNNEL_AUTH + const PKT_TYPE_TUNNEL_AUTH_RESPONSE + const PKT_TYPE_TUNNEL_CREATE + const PKT_TYPE_TUNNEL_RESPONSE + const SERVER_STATE_CHANNEL_CREATE + const SERVER_STATE_CLOSED + const SERVER_STATE_HANDSHAKE + const SERVER_STATE_INITIAL + const SERVER_STATE_OPENED + const SERVER_STATE_TUNNEL_AUTHORIZE + const SERVER_STATE_TUNNEL_CREATE + const Version + func DecodeUTF16(b []byte) (string, error) + func EncodeUTF16(s string) []byte + type ClientConfig struct + LocalConn net.Conn + NTLMAuth bool + Name string + PAAToken string + Port int + Server string + Session *SessionInfo + SmartCardAuth bool + func (c *ClientConfig) ConnectAndForward() error + type Gateway struct + ServerConf *ServerConf + func (g *Gateway) HandleGatewayProtocol(w http.ResponseWriter, r *http.Request) + type RedirectFlags struct + Clipboard bool + DisableAll bool + Drive bool + EnableAll bool + Pnp bool + Port bool + Printer bool + type Server struct + ClientName string + IdleTimeout int + RedirectFlags int + Remote net.Conn + Session *SessionInfo + SmartCardAuth bool + State int + TokenAuth bool + VerifyServerFunc VerifyServerFunc + VerifyTunnelAuthFunc VerifyTunnelAuthFunc + VerifyTunnelCreate VerifyTunnelCreate + func NewServer(s *SessionInfo, conf *ServerConf) *Server + func (s *Server) Process(ctx context.Context) error + type ServerConf struct + IdleTimeout int + RedirectFlags RedirectFlags + SmartCardAuth bool + TokenAuth bool + VerifyServerFunc VerifyServerFunc + VerifyTunnelAuthFunc VerifyTunnelAuthFunc + VerifyTunnelCreate VerifyTunnelCreate + type SessionInfo struct + ClientIp string + ConnId string + RemoteServer string + TransportIn transport.Transport + TransportOut transport.Transport + type VerifyServerFunc func(context.Context, string) (bool, error) + type VerifyTunnelAuthFunc func(context.Context, string) (bool, error) + type VerifyTunnelCreate func(context.Context, string) (bool, error)