Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*debugger) error
Option defines function to configure debugger.
func WithBuiltinServer ¶
WithBuiltinServer configures debugger by built-in HTTP server.
func WithCustomListenerAndServer ¶
WithCustomListenerAndServer configures debugger by custom listener and server.
func WithSpecificHost ¶ added in v0.1.0
WithSpecificHost configures debugger by specific host.
type Server ¶
type Server interface { // Serve accepts incoming connections on the Listener and serves them. Serve(net.Listener) error // RegisterOnShutdown registers a function to call on Shutdown. RegisterOnShutdown(func()) // Shutdown tries to do a graceful shutdown. Shutdown(context.Context) error }
A Server is a generic server to listen a network protocol. It is compatible with net/http.Server.
Click to show internal directories.
Click to hide internal directories.