manager

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoConnection      = errors.New("no connection available")
	ErrSubdomainNotFound = errors.New("subdomain not found")
)

Functions

This section is empty.

Types

type Manager

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

func New

func New() *Manager

func (*Manager) Acquire

func (m *Manager) Acquire(subdomain string) (transport.Stream, error)

func (*Manager) ForEachClient

func (m *Manager) ForEachClient(fn func(subdomain string, info *connection.Connection))

func (*Manager) HandleConnection

func (m *Manager) HandleConnection(transp transport.Transport)

HandleConnection handles a new connection.

func (*Manager) HandleStream

func (m *Manager) HandleStream(client *connection.Connection, msg *protocol.Message) error

func (*Manager) Honeypot added in v0.0.2

func (m *Manager) Honeypot() *honeypot.Honeypot

func (*Manager) IsAuthorized

func (m *Manager) IsAuthorized(token string) bool

func (*Manager) Release

func (m *Manager) Release(subdomain string, stream transport.Stream)

func (*Manager) ServeHTTP added in v0.0.2

func (m *Manager) ServeHTTP(w http.ResponseWriter, req *http.Request)

func (*Manager) SetGunnelSubdomainHandler

func (m *Manager) SetGunnelSubdomainHandler(handler http.HandlerFunc)

func (*Manager) SetHoneypot added in v0.0.2

func (m *Manager) SetHoneypot(h *honeypot.Honeypot)

func (*Manager) SetTokenValidator

func (m *Manager) SetTokenValidator(validator func(string) bool)

Jump to

Keyboard shortcuts

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