api

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultDevOrigins

func DefaultDevOrigins(listen string) []string

DefaultDevOrigins returns browser Origin values for local viewer dev (R10 dev ergonomics).

func OriginAllowed

func OriginAllowed(origin string, allowlist []string) bool

OriginAllowed implements default-deny Origin allowlist matching (R10).

Types

type Server

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

Server exposes HTTP and WebSocket endpoints for Tuile.

func NewServer

func NewServer(cfg config.Server, mgr *session.Manager, tokens *auth.Store, boot auth.BootstrapSecret) *Server

NewServer wires routes and dependencies.

func (*Server) CloseSession

func (s *Server) CloseSession(id string) error

CloseSession revokes tokens and stops the PTY session.

func (*Server) Handler

func (s *Server) Handler() http.Handler

Handler returns the root HTTP handler.

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

ListenAndServe starts the HTTP server with optional TLS (KTD4).

Jump to

Keyboard shortcuts

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