2018-08-29 12:04:23 +00:00
|
|
|
package session
|
|
|
|
|
|
|
|
import (
|
2018-08-31 02:32:25 +00:00
|
|
|
"git.loafle.net/overflow_scanner/probe/discovery/types"
|
2018-08-29 12:04:23 +00:00
|
|
|
)
|
|
|
|
|
2018-08-31 02:32:25 +00:00
|
|
|
func NewMockDiscoverySession(requesterID string, discoveryRequestType types.DiscoveryRequestType, params ...interface{}) DiscoverySession {
|
|
|
|
s := &mockDiscoverySession{}
|
|
|
|
s.InitWithRequest(
|
|
|
|
types.NewMockDiscoveryRequest(
|
|
|
|
requesterID,
|
|
|
|
discoveryRequestType,
|
|
|
|
params...,
|
|
|
|
),
|
|
|
|
)
|
|
|
|
return s
|
2018-08-29 12:04:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type mockDiscoverySession struct {
|
|
|
|
ofDiscoverySession
|
|
|
|
}
|
|
|
|
|
2018-09-03 03:22:52 +00:00
|
|
|
// func (ds *mockDiscoverySession) AddHost(host *omd.Host) *omd.Host {
|
|
|
|
// return host
|
|
|
|
// }
|
2018-08-29 12:04:23 +00:00
|
|
|
|
2018-09-03 03:22:52 +00:00
|
|
|
// func (ds *mockDiscoverySession) AddPort(port *omd.Port) *omd.Port {
|
|
|
|
// return port
|
|
|
|
// }
|
2018-08-29 12:04:23 +00:00
|
|
|
|
2018-09-03 03:22:52 +00:00
|
|
|
// func (ds *mockDiscoverySession) AddService(service *omd.Service) *omd.Service {
|
|
|
|
// return service
|
|
|
|
// }
|