Allowing Commands to reconfigure app Configuration, this is will allow default ports to be currently added to remote presets
This commit is contained in:
@@ -28,6 +28,7 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/niruix/sshwifty/application/command"
|
||||
"github.com/niruix/sshwifty/application/configuration"
|
||||
"github.com/niruix/sshwifty/application/log"
|
||||
)
|
||||
@@ -50,6 +51,9 @@ type HandlerBuilder func(
|
||||
cfg configuration.Server,
|
||||
logger log.Logger) http.Handler
|
||||
|
||||
// HandlerBuilderBuilder builds HandlerBuilder
|
||||
type HandlerBuilderBuilder func(command.Commands) HandlerBuilder
|
||||
|
||||
// CloseCallback will be called when the server has closed
|
||||
type CloseCallback func(error)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user