package
    
    
      
        
      
    
   
    
      
  
    
      
  
    
      Version: 
        v0.9.8-RC03
    
    
      Opens a new window with list of versions in this module.
    
    
    
  
      
  
    Published: Oct 22, 2025
  
      
  
    License: MIT
      
    
  
  
    Opens a new window with license information.
  
      
        
  
    
      Imports: 0
    
  
  
    Opens a new window with list of imports.
  
        
  
    
       Imported by: 0
    
  
  
    Opens a new window with list of known importers.
  
      
    
   
  
  
    
   
    
      
    
    
    
  
    
      
      
        
          
  
    
      
      Documentation
      ¶
    
    
  
    
  
    
      
        
 
  
  
  
  
  
  
  
      
  
  
    
    
    
      type Broker[T any] struct {
	
}
     
  
    
  
  
    
    
    
      func (b *Broker[T]) Publish(msg T)
     
  
  
   
    
  
  
    
    
    
      func (b *Broker[T]) Subscribe() chan T
     
  
  
   
    
  
  
    
    
    
      func (b *Broker[T]) Unsubscribe(msgCh chan T)
     
  
  
   
  
     
      
  
  
    
    
    
      type IBroker interface {
	Start()
	Stop()
	Publish(any)
	Subscribe() chan any
}
     
  
  
       
      
     
   
        
      
      
        
  
    
      
      Source Files
      ¶
    
   
      
      
     
   
   Click to show internal directories. 
   Click to hide internal directories.