ws

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine = engine.Engine

type QueryRequest

type QueryRequest struct {
	Query string `json:"query"`
}

type Server

type Server struct {
	Engine         Engine
	Logger         *slog.Logger
	OriginPatterns []string
}

func NewServer

func NewServer(engine Engine, logger *slog.Logger, origins ...string) *Server

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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