devserver

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const CertificateDownloadPath = "/_golazy/local-development-ca.pem"
View Source
const DevToolsWorkspacePath = "/.well-known/appspecific/com.chrome.devtools.json"
View Source
const ExtensionHandshakeBody = "i love being lazy"
View Source
const ExtensionHandshakePath = "/_golazy/extension"
View Source
const HTTPSProbePath = "/_golazy/https-ready"
View Source
const PanelClientPath = "/_golazy/assets/panel.js"
View Source
const PanelClientRootID = "golazy-dev-panel-root"
View Source
const PanelPrefix = "/_golazy"
View Source
const ReloadPath = "/__lazy/reload"

Variables

This section is empty.

Functions

This section is empty.

Types

type Option added in v0.1.17

type Option func(*options)

func WithCertificateAuthority added in v0.1.17

func WithCertificateAuthority(authority *customcertservice.Authority) Option

func WithCertificatePaths added in v0.1.17

func WithCertificatePaths(paths customcertservice.Paths) Option

func WithLocalHTTPS added in v0.1.17

func WithLocalHTTPS(enabled bool) Option

type Server

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

func New

func New(listenAddr string, panel http.Handler, store *buildservice.Store, opts ...Option) (*Server, error)

func (*Server) Addr

func (s *Server) Addr() string

func (*Server) BroadcastReload

func (s *Server) BroadcastReload()

func (*Server) ClearTarget

func (s *Server) ClearTarget()

func (*Server) ServeHTTP

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

func (*Server) SetTarget

func (s *Server) SetTarget(target string)

func (*Server) Shutdown

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

func (*Server) Start

func (s *Server) Start() error

Jump to

Keyboard shortcuts

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