mocked_connections_test.go 713 B

1234567891011121314151617181920212223242526272829
  1. // Copyright (C) 2016 The Syncthing Authors.
  2. //
  3. // This Source Code Form is subject to the terms of the Mozilla Public
  4. // License, v. 2.0. If a copy of the MPL was not distributed with this file,
  5. // You can obtain one at https://mozilla.org/MPL/2.0/.
  6. package api
  7. import (
  8. "github.com/syncthing/syncthing/lib/connections"
  9. )
  10. type mockedConnections struct{}
  11. func (m *mockedConnections) ListenerStatus() map[string]connections.ListenerStatusEntry {
  12. return nil
  13. }
  14. func (m *mockedConnections) ConnectionStatus() map[string]connections.ConnectionStatusEntry {
  15. return nil
  16. }
  17. func (m *mockedConnections) NATType() string {
  18. return ""
  19. }
  20. func (m *mockedConnections) Serve() {}
  21. func (m *mockedConnections) Stop() {}