impl

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RDPProxyServiceImpl

type RDPProxyServiceImpl struct {
	ioc.ObjectImpl

	// TCP 代理配置
	TCPListenAddr string `json:"tcp_listen_addr" yaml:"tcp_listen_addr" toml:"tcp_listen_addr" env:"RDP_TCP_LISTEN_ADDR"`
	TCPMaxConns   int    `json:"tcp_max_conns" yaml:"tcp_max_conns" toml:"tcp_max_conns" env:"RDP_TCP_MAX_CONNS"`
	// contains filtered or unexported fields
}

func (*RDPProxyServiceImpl) Init

func (r *RDPProxyServiceImpl) Init() error

func (*RDPProxyServiceImpl) Name

func (r *RDPProxyServiceImpl) Name() string

type RdpConnectionHandler

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

RdpConnectionHandler RDP 连接处理器(透明代理)

func NewRdpConnectionHandler

func NewRdpConnectionHandler(
	policySvc policy.Service,
	backendSvc backend.Service,
	auditSvc audit.Service,
	log *zerolog.Logger,
) *RdpConnectionHandler

NewRdpConnectionHandler 创建 RDP 连接处理器

func (*RdpConnectionHandler) GetMetrics

func (h *RdpConnectionHandler) GetMetrics() *RdpMetrics

GetMetrics 获取指标

func (*RdpConnectionHandler) HandleConnection

func (h *RdpConnectionHandler) HandleConnection(ctx context.Context, clientConn net.Conn) error

HandleConnection 实现 proxy.ConnectionHandler 接口

type RdpMetrics

type RdpMetrics struct {
	TotalSessions  int64
	ActivSessions  int64
	FailedSessions int64
	TotalBytesSent int64
	TotalBytesRecv int64
}

RdpMetrics RDP 代理指标

Jump to

Keyboard shortcuts

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