2016-05-04 19:38:12 +00:00
|
|
|
// Copyright (C) 2016 The Syncthing Authors.
|
|
|
|
//
|
|
|
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
2017-02-09 06:52:18 +00:00
|
|
|
// You can obtain one at https://mozilla.org/MPL/2.0/.
|
2016-05-04 19:38:12 +00:00
|
|
|
|
2019-03-26 19:53:58 +00:00
|
|
|
package api
|
2016-05-04 19:38:12 +00:00
|
|
|
|
2019-05-16 21:11:46 +00:00
|
|
|
import (
|
|
|
|
"github.com/syncthing/syncthing/lib/connections"
|
|
|
|
)
|
|
|
|
|
2016-05-04 19:38:12 +00:00
|
|
|
type mockedConnections struct{}
|
|
|
|
|
2019-05-16 21:11:46 +00:00
|
|
|
func (m *mockedConnections) ListenerStatus() map[string]connections.ListenerStatusEntry {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *mockedConnections) ConnectionStatus() map[string]connections.ConnectionStatusEntry {
|
2016-05-04 19:38:12 +00:00
|
|
|
return nil
|
|
|
|
}
|
2017-10-12 06:16:46 +00:00
|
|
|
|
|
|
|
func (m *mockedConnections) NATType() string {
|
|
|
|
return ""
|
|
|
|
}
|
2019-02-26 08:09:25 +00:00
|
|
|
|
|
|
|
func (m *mockedConnections) Serve() {}
|
|
|
|
|
|
|
|
func (m *mockedConnections) Stop() {}
|
2019-08-13 07:33:33 +00:00
|
|
|
|
|
|
|
func (m *mockedConnections) ExternalAddresses() []string { return nil }
|
|
|
|
|
|
|
|
func (m *mockedConnections) AllAddresses() []string { return nil }
|