Skip to content

josegonzalez/go-statsdurl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-statsdurl

Connect to a database using a STATSD_URL.

Usage

It uses Statsd under the hood:

import "github.com/josegonzalez/go-statsdurl"

// Connect using os.Getenv("STATSD_URL").
c, err := statsdurl.Connect()

// Alternatively, connect using a custom Database URL.
c, err := statsdurl.ConnectToURL("udp://...")

In both cases you will get the result values of calling statsd.NewStatsdClient(...), that is, an instance of statsd.StatsdClient and an error.

Installation

Install it using the "go get" command:

go get github.com/josegonzalez/go-statsdurl

About

Connect to database using a STATSD_URL and the statsd client.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages