Help us shape the future of Go! Take the 2026 Go Developer Survey

web

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

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 serves the sql-tap web UI and API endpoints.

func New

func New(b *broker.Broker, explainClient *explain.Client) *Server

New creates a new web Server backed by the given Broker. explainClient may be nil if EXPLAIN is not configured.

func (*Server) Handler

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

Handler returns the HTTP handler for testing.

func (*Server) Serve

func (s *Server) Serve(lis net.Listener) error

Serve starts the HTTP server on the given listener.

func (*Server) Shutdown

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

Shutdown gracefully stops the HTTP server.

Jump to

Keyboard shortcuts

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