server

package
v1.7.9 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Users *config.Users

Functions

func NewServer

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

Types

type Forwarder

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

func NewForwarder

func NewForwarder(ctx context.Context, 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

Jump to

Keyboard shortcuts

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