Added Responder service implementation

This commit is contained in:
Trial97
2019-09-20 14:46:30 +03:00
committed by Dan Christian Bogos
parent 60fef23caa
commit 9dcbaaf06a
4 changed files with 66 additions and 29 deletions

View File

@@ -478,6 +478,10 @@ type ServiceProvider interface {
GetExitChan() chan bool
// GetConnection creates a rpcClient to the specified subsystem
GetConnection(subsystem string, cfg []*config.RemoteHost) (rpcclient.RpcClientConnection, error)
// GetService returns the named service
GetService(subsystem string) (Service, error)
// AddService adds the given serices
AddService(services ...Service)
}
// Service interface that describes what functions should a service implement