server

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CLIENT_MAX_TUNNELS_REACHED = errors.New("Client reached max tunnels limit")
View Source
var FAILED_TO_FORWARD_TO_MMAR_CLIENT_ERR error = errors.New(constants.FAILED_TO_FORWARD_TO_MMAR_CLIENT_ERR_TEXT)
View Source
var FAILED_TO_READ_RESP_FROM_MMAR_CLIENT_ERR error = errors.New(constants.FAILED_TO_READ_RESP_FROM_MMAR_CLIENT_ERR_TEXT)

Functions

func Run

func Run(config ConfigOptions)

Types

type ClientTunnel

type ClientTunnel struct {
	protocol.Tunnel
	// contains filtered or unexported fields
}

Tunnel to Client

type ConfigOptions

type ConfigOptions struct {
	HttpPort string
	TcpPort  string
}

type IncomingRequest

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

type MmarServer

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

func (*MmarServer) GenerateUniqueId

func (ms *MmarServer) GenerateUniqueId() string

func (*MmarServer) ServeHTTP

func (ms *MmarServer) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*MmarServer) TunnelLimitedIP

func (ms *MmarServer) TunnelLimitedIP(ip string) bool

type OutgoingResponse

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

Jump to

Keyboard shortcuts

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