package
    
    
      
        
      
    
   
    
      
  
    
      
  
    
      Version: 
        v0.0.11
    
    
      Opens a new window with list of versions in this module.
    
    
    
  
      
  
    Published: Mar 10, 2021
  
      
  
    License: Apache-2.0
      
    
  
  
    Opens a new window with license information.
  
      
        
  
    
      Imports: 8
    
  
  
    Opens a new window with list of imports.
  
        
  
    
       Imported by: 0
    
  
  
    Opens a new window with list of known importers.
  
      
    
   
  
  
    
   
    
      
    
    
    
  
    
      
      
        
          
  
    
      
      Documentation
      ¶
    
    
  
    
  
    
      
        
 
    
Package health contains code for health checks.
  
  
  
  
  
	  
  
  
    
    
    
  GetVersion returns service's version and commit.
  
         
	  
  
  
    
    
    
  SetupRouter setups all pingers to /health.
  
         
  
  
      
  
  
    
    
    
  Pinger pings external service.
    
  
  
    
    
    
  SubjectPinger returns wrapper over Ping function which adds subject to error message.
It is helpful for external Ping function, e.g. (sql.DB).Ping.
  
   
  
     
      
  
  
    
    
    
      type VersionResponse struct {
	Version string `json:"version"`
	Commit  string `json:"commit"`
}
     
  VersionResponse ...
  
       
      
     
   
        
      
      
        
  
    
      
      Source Files
      ¶
    
   
      
      
     
   
   Click to show internal directories. 
   Click to hide internal directories.