Documentation ¶
Index ¶
- func NewClientTransport(ctx context.Context, dialer N.Dialer, serverAddr M.Socksaddr, ...) (adapter.V2RayClientTransport, error)
- func NewGRPCClient(ctx context.Context, dialer N.Dialer, serverAddr M.Socksaddr, ...) (adapter.V2RayClientTransport, error)
- func NewGRPCServer(ctx context.Context, logger logger.ContextLogger, ...) (adapter.V2RayServerTransport, error)
- func NewQUICClient(ctx context.Context, dialer N.Dialer, serverAddr M.Socksaddr, ...) (adapter.V2RayClientTransport, error)
- func NewQUICServer(ctx context.Context, logger logger.ContextLogger, ...) (adapter.V2RayServerTransport, error)
- func NewServerTransport(ctx context.Context, logger logger.ContextLogger, ...) (adapter.V2RayServerTransport, error)
- func RegisterQUICConstructor(server ServerConstructor[option.V2RayQUICOptions], ...)
- type ClientConstructor
- type ServerConstructor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientTransport ¶
func NewGRPCClient ¶
func NewGRPCServer ¶
func NewGRPCServer(ctx context.Context, logger logger.ContextLogger, options option.V2RayGRPCOptions, tlsConfig tls.ServerConfig, handler adapter.V2RayServerTransportHandler) (adapter.V2RayServerTransport, error)
func NewQUICClient ¶
func NewQUICServer ¶
func NewQUICServer(ctx context.Context, logger logger.ContextLogger, options option.V2RayQUICOptions, tlsConfig tls.ServerConfig, handler adapter.V2RayServerTransportHandler) (adapter.V2RayServerTransport, error)
func NewServerTransport ¶
func NewServerTransport(ctx context.Context, logger logger.ContextLogger, options option.V2RayTransportOptions, tlsConfig tls.ServerConfig, handler adapter.V2RayServerTransportHandler) (adapter.V2RayServerTransport, error)
func RegisterQUICConstructor ¶
func RegisterQUICConstructor(server ServerConstructor[option.V2RayQUICOptions], client ClientConstructor[option.V2RayQUICOptions])
Types ¶
type ClientConstructor ¶
type ServerConstructor ¶
type ServerConstructor[O any] func(ctx context.Context, logger logger.ContextLogger, options O, tlsConfig tls.ServerConfig, handler adapter.V2RayServerTransportHandler) (adapter.V2RayServerTransport, error)
Click to show internal directories.
Click to hide internal directories.