Documentation
¶
Index ¶
Constants ¶
View Source
const (
// DefaultAddr is the default listen address for the web server.
DefaultAddr = "127.0.0.1:8788"
)
Variables ¶
This section is empty.
Functions ¶
func IsLoopbackAddr ¶
IsLoopbackAddr reports whether the listen address is bound only to loopback.
func NewHandler ¶
func NewHandler(opts HandlerOptions) http.Handler
NewHandler creates the web server handler.
Types ¶
type HandlerOptions ¶
type HandlerOptions struct {
ConfigPath string
InitialProfile string
AllowPlaintext bool
SkipHostKeyCheck bool
AuthRequired bool
AuthToken string
Assets fs.FS
}
HandlerOptions configures the web HTTP handlers.
Click to show internal directories.
Click to hide internal directories.