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 ¶
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 SegmentCreationServer ¶
type SegmentCreationServer struct {
Handler BeaconHandler
}
SegmentCreationServer handles beaconing requests.
func (SegmentCreationServer) Beacon ¶
func (s SegmentCreationServer) Beacon(ctx context.Context, req *cppb.BeaconRequest) (*cppb.BeaconResponse, error)
Click to show internal directories.
Click to hide internal directories.