Allowing Commands to reconfigure app Configuration, this is will allow default ports to be currently added to remote presets

This commit is contained in:
NI committed 2020-02-23 17:23:24 +08:00
1 parent 697ee0b2a1
commit e7ca6d95ed
14 files changed
+212 -79

No files matched your search

+4
View File
@@ -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)