Documentation
¶
Overview ¶
Package listenport plans a live HTTP port change without moving Git data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAlias ¶
AddAlias keeps the current listener open, adds another HTTP port, and makes that port the public URL for clone and web links.
func Apply ¶
Apply rebinds plain HTTP onto the new port and stores the public URL. The new socket is opened before the old one is closed. A failed config write binds the previous port again.
func RewriteRootURL ¶
RewriteRootURL moves the public site URL onto the new listen port. The path, scheme, and credentials are kept. An IPv6 host stays bracketed.
func ValidatePort ¶
ValidatePort accepts a TCP port that can be bound by the server.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.