grpc

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeaconHandler

type BeaconHandler interface {
	HandleBeacon(ctx context.Context, b beacon.Beacon, peer *snet.UDPAddr) error
}

BeaconHandler handles the received beacons.

type BeaconSender

type BeaconSender struct {
	// Dialer dials a new gRPC connection.
	Dialer grpc.Dialer
}

BeaconSender propagates beacons.

func (BeaconSender) SendBeacon

func (r BeaconSender) SendBeacon(ctx context.Context, b *seg.PathSegment, remote net.Addr) error

SendBeacon sends a beacon to the remote.

type Registrar

type Registrar struct {
	// Dialer dials a new gRPC connection.
	Dialer grpc.Dialer
}

Registrar registers segments.

func (Registrar) RegisterSegment

func (r Registrar) RegisterSegment(ctx context.Context, meta seg.Meta, remote net.Addr) error

RegisterSegment registers a segment with the remote.

type SegmentCreationServer

type SegmentCreationServer struct {
	Handler BeaconHandler
}

SegmentCreationServer handles beaconing requests.

func (SegmentCreationServer) Beacon

Jump to

Keyboard shortcuts

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