Documentation ¶
Index ¶
Constants ¶
View Source
const MaxSegmentSize = (1 << 16) - 1 // largest possible TCP datagram
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Peer ¶
type Peer struct {
// contains filtered or unexported fields
}
func NewPeer ¶
func NewPeer(stream proto.TunnelService_ConnectServer, logger *logrus.Logger, peerConf *config.PeerConfMap) (*Peer, error)
type TunnelService ¶
type TunnelService struct { proto.UnimplementedTunnelServiceServer // contains filtered or unexported fields }
func (*TunnelService) Close ¶
func (t *TunnelService) Close() error
func (*TunnelService) Connect ¶
func (t *TunnelService) Connect(stream proto.TunnelService_ConnectServer) error
func (*TunnelService) IsAvailableFromThisSource ¶
func (t *TunnelService) IsAvailableFromThisSource(stream proto.TunnelService_ConnectServer, peerConf *config.PeerConfMap) error
Click to show internal directories.
Click to hide internal directories.