service

package
v0.0.0-...-56e4e5e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2023 License: MIT Imports: 14 Imported by: 0

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)

func (*Peer) Close

func (peer *Peer) Close()

func (*Peer) Handle

func (peer *Peer) Handle() error

type Peers

type Peers struct {
	// contains filtered or unexported fields
}

func NewPeers

func NewPeers() *Peers

func (*Peers) Add

func (p *Peers) Add(peer *Peer)

func (*Peers) Close

func (p *Peers) Close() error

func (*Peers) Remove

func (p *Peers) Remove(peer *Peer)

type TunnelService

type TunnelService struct {
	proto.UnimplementedTunnelServiceServer
	// contains filtered or unexported fields
}

func NewTunnel

func NewTunnel(logger *logrus.Logger, conf *config.ConfMap) *TunnelService

func (*TunnelService) Close

func (t *TunnelService) Close() error

func (*TunnelService) Connect

func (*TunnelService) IsAvailableFromThisSource

func (t *TunnelService) IsAvailableFromThisSource(stream proto.TunnelService_ConnectServer, peerConf *config.PeerConfMap) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL