Documentation
¶
Overview ¶
Package controlchannel implements the control channel logic. The control channel sits above the reliable transport and below the TLS layer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// NotifyTLS is the channel that sends notifications up to the TLS layer.
NotifyTLS *chan *model.Notification
// ControlToReliable moves packets from us down to the reliable layer.
ControlToReliable *chan *model.Packet
// ReliableToControl moves packets up to us from the reliable layer below.
ReliableToControl chan *model.Packet
// TLSRecordToControl moves bytes down to us from the TLS layer above.
TLSRecordToControl chan []byte
// TLSRecordFromControl moves bytes from us up to the TLS layer above.
TLSRecordFromControl *chan []byte
}
Service is the controlchannel service. Make sure you initialize the channels before invoking Service.StartWorkers.
func (*Service) StartWorkers ¶
func (svc *Service) StartWorkers( config *config.Config, workersManager *workers.Manager, sessionManager *session.Manager, )
StartWorkers starts the control-channel workers. See the ARCHITECTURE file for more information about the packet-muxer workers.
Click to show internal directories.
Click to hide internal directories.