mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 17:15:56 +00:00
Requested changes.
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
This commit is contained in:
parent
5440e177de
commit
e0787ed8a8
1 changed files with 4 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ type Handler struct {
|
|||
api *pilosa.API
|
||||
|
||||
ln net.Listener
|
||||
// Needed real URL for a log
|
||||
// url is used to hold the advertise bind address for printing a log during startup.
|
||||
url string
|
||||
|
||||
closeTimeout time.Duration
|
||||
|
|
@ -137,6 +137,9 @@ func OptHandlerLogger(logger logger.Logger) handlerOption {
|
|||
}
|
||||
}
|
||||
|
||||
// OptHandlerListener set the listener that will be used by the HTTP server.
|
||||
// Url must be the advertised URL. It will be used to show a log to the user
|
||||
// about where the Web UI is. This option is mandatory.
|
||||
func OptHandlerListener(ln net.Listener, url string) handlerOption {
|
||||
return func(h *Handler) error {
|
||||
h.ln = ln
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue