Files
syncthing-arm/lib/api/mocked_connections_test.go
T

30 lines
713 B
Go
Raw Normal View History

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,
// You can obtain one at https://mozilla.org/MPL/2.0/.
2016-05-04 19:38:12 +00:00
package api
2016-05-04 19:38:12 +00:00
import (
"github.com/syncthing/syncthing/lib/connections"
)
2016-05-04 19:38:12 +00:00
type mockedConnections struct{}
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
}
func (m *mockedConnections) NATType() string {
return ""
}
func (m *mockedConnections) Serve() {}
func (m *mockedConnections) Stop() {}