Include selected overlay type in connection status

This commit is contained in:
Adam Harrison committed 2015-10-13 17:04:56 +01:00
1 parent da49e71eb8
commit 91afa7f7f4
5 files changed
+31 -1

No files matched your search

+7
View File
@@ -88,6 +88,9 @@ type OverlayForwarder interface {
// compatibility, and should always be
// ProtocolOverlayControlMessage for non-sleeve overlays.
ControlMessage(tag byte, msg []byte)
// User facing overlay name
DisplayName() string
}
type NullOverlay struct{}
@@ -129,3 +132,7 @@ func (NullOverlay) Stop() {
func (NullOverlay) ControlMessage(byte, []byte) {
}
func (NullOverlay) DisplayName() string {
return "null"
}