 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package mongodb is a Metricbeat module that contains MetricSets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnvHost ¶
func GetEnvHost() string
GetEnvHost returns the hostname of the Mongodb server to use for testing. It reads the value from the MONGODB_HOST environment variable and returns 127.0.0.1 if it is not set.
func GetEnvPort ¶
func GetEnvPort() string
GetEnvPort returns the port of the Mongodb server to use for testing. It reads the value from the MONGODB_PORT environment variable and returns 27017 if it is not set.
func NewDirectSession ¶
NewDirectSession estbalishes direct connections with a list of hosts. It uses the supplied dialInfo parameter as a template for establishing more direct connections
Types ¶
This section is empty.
       Source Files
      ¶
      Source Files
      ¶
    
- doc.go
- mongodb.go
- testing.go
 Click to show internal directories. 
   Click to hide internal directories.