From 717ba4b3c00534a115a2e229c514dd378cd9fbc8 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Wed, 10 Jul 2019 17:41:17 +0100 Subject: [PATCH] Add tunnel comments --- network/tunnel/tunnel.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/network/tunnel/tunnel.go b/network/tunnel/tunnel.go index 837701e4..3189e81d 100644 --- a/network/tunnel/tunnel.go +++ b/network/tunnel/tunnel.go @@ -1,4 +1,4 @@ -// Package tunnel provides a network tunnel +// Package tunnel provides a network tunnel ontop of a link package tunnel import ( @@ -6,7 +6,9 @@ import ( "github.com/micro/go-micro/transport" ) -// Tunnel creates a network tunnel +// Tunnel creates a network tunnel on top of a link. +// It establishes multiple streams using the Micro-Tunnel header +// created as a hash of the address. type Tunnel interface { // Connect connects the tunnel Connect() error