Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Events ¶
type Events struct {
	// Holds event instances to attach to for received messages.
	// Use a message's ID to get the corresponding event.
	Received []*event.Event[[]byte]
	// Fired for generic protocol errors.
	Error *event.Event[error]
}
    Events holds protocol related events.
type Protocol ¶
type Protocol struct {
	// Holds events for sent/received messages and generic errors.
	Events *Events
	// contains filtered or unexported fields
}
    Protocol encapsulates the logic of parsing and sending protocol messages.
 Click to show internal directories. 
   Click to hide internal directories.