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

console

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package console provides the web console server for Berth.

Server wraps an net/http.Handler to serve the Berth console UI. The handler is provided at construction time via NewServer, defaulting to an empty net/http.ServeMux when nil.

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 Berth web console UI.

func NewServer

func NewServer(handler http.Handler) *Server

NewServer creates a console Server with the given handler. If handler is nil, an empty net/http.ServeMux is used.

func (*Server) Handler

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

Handler returns the HTTP handler serving the console UI.

Jump to

Keyboard shortcuts

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