 package
    
    
    
      package
    
    
      
        
      
    
   
    
      
  
    
      
  
    
      Version: 
        v2.3.2+incompatible
    
    
      Opens a new window with list of versions in this module.
    
    
    
  
      
  
    Published: Jul 28, 2021
  
      
  
    License: AGPL-3.0
      
    
  
  
    Opens a new window with license information.
  
      
        
  
    
      Imports: 16
    
  
  
    Opens a new window with list of imports.
  
        
  
    
       Imported by: 0
    
  
  
    Opens a new window with list of known importers.
  
      
    
   
  
  
    
   
    
      
    
    
    
  
    
      
      
        
          
  
    
       Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    
      
        
 
  
  
  
  
  
	  
  
  
    
    
    
  EnableSTAN enables the http broker
  
         
	  
  
  
    
    
    
  EnableNATS enables the nats broker
  
         
	  
  
  
    
    
    
  EnableSTAN enables the stan broker
  
         
	  
  
  
    
    
    
      func EnableService(hostname, port string)
     
  
  
         
	  
  
  
    
    
    
  NewBroker wraps a standard broker but prevents it from disconnecting while there still is a service running
  
         
  
  
      
  
  
    
    
    
  Option definition
    
  
  
    
    
    
  BeforeDisconnect registers all functions to be triggered before the broker disconnect
  
   
  
       
      
     
   
        
      
      
        
  
    
       Source Files
      ¶
      Source Files
      ¶
    
      - broker.go
- enable.go
- options.go
 
   
      
      
        
  
    
       Directories
      ¶
      Directories
      ¶
    
    
    
      
      
          
  
  
    |  |  | 
      
          
  
  
    |  |  | 
      
          
  
  
    | 
        
          Package stan provides a NATS Streaming broker | Package stan provides a NATS Streaming broker | 
      
    
   
      
     
   
   Click to show internal directories. 
   Click to hide internal directories.