server

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 38 Imported by: 0

Documentation

Overview

Package server implements the expose HTTPS reverse-proxy server with WebSocket-based tunnel management, ACME TLS, and session lifecycle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is the main expose HTTPS server that manages tunnel registrations, WebSocket sessions, TLS certificates, and public HTTP proxying.

func New

func New(cfg config.ServerConfig, store *sqlite.Store, logger *slog.Logger, version string) *Server

New creates a Server with the given configuration, store, and logger.

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

Run starts the HTTPS server, ACME challenge server, and background janitor. It blocks until ctx is cancelled or a fatal error occurs.

Jump to

Keyboard shortcuts

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