server

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Forwarder

type Forwarder struct {
	Ctx    context.Context
	Users  config.Users
	Stream proto.Proxy_ProxyServer
	Conn   net.Conn
	Ack    chan interface{}
}

func NewForwarder

func NewForwarder(ctx context.Context, users config.Users, stream proto.Proxy_ProxyServer) *Forwarder

func (*Forwarder) Close

func (f *Forwarder) Close() error

func (*Forwarder) CopyClientToTarget

func (f *Forwarder) CopyClientToTarget() error

func (*Forwarder) CopyTargetToClient

func (f *Forwarder) CopyTargetToClient() error

func (*Forwarder) Start added in v1.7.9

func (f *Forwarder) Start() error

type Server added in v1.8.3

type Server struct {
	proto.UnimplementedProxyServer
	Ctx   context.Context
	Users config.Users
	// contains filtered or unexported fields
}

func NewServer

func NewServer(ctx context.Context, users config.Users, ssl *config.SSL) (*Server, error)

func (*Server) ListenAndServe added in v1.8.3

func (s *Server) ListenAndServe(addr string) error

ListenAndServe starts the server at the given address

func (*Server) Proxy added in v1.8.3

func (s *Server) Proxy(stream proto.Proxy_ProxyServer) error

Jump to

Keyboard shortcuts

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