proxy

package
v0.0.0-...-1100b98 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WSProxyMap = make(map[string]*WSProxy)
)

Functions

This section is empty.

Types

type IProxy

type IProxy interface {
	Setup()
	Close()
	Entry() (entry string)
}

func NewProxy

func NewProxy(target string) IProxy

func NewWSProxy

func NewWSProxy(target string) IProxy

type WSProxy

type WSProxy struct {
	Listen   string
	Target   string
	Upgrader websocket.Upgrader
}

func (*WSProxy) Close

func (w *WSProxy) Close()

func (*WSProxy) Entry

func (w *WSProxy) Entry() string

func (*WSProxy) Handle

func (w *WSProxy) Handle(conn *websocket.Conn)

func (*WSProxy) Setup

func (w *WSProxy) Setup()

Jump to

Keyboard shortcuts

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