mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
add functions/vendor files
This commit is contained in:
29
vendor/github.com/cactus/go-statsd-client/statsd/doc.go
generated
vendored
Normal file
29
vendor/github.com/cactus/go-statsd-client/statsd/doc.go
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
// Copyright (c) 2012-2016 Eli Janssen
|
||||
// Use of this source code is governed by an MIT-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
/*
|
||||
Package statsd provides a StatsD client implementation that is safe for
|
||||
concurrent use by multiple goroutines and for efficiency can be created and
|
||||
reused.
|
||||
|
||||
Example usage:
|
||||
|
||||
// first create a client
|
||||
client, err := statsd.NewClient("127.0.0.1:8125", "test-client")
|
||||
// handle any errors
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
// make sure to clean up
|
||||
defer client.Close()
|
||||
|
||||
// Send a stat
|
||||
err = client.Inc("stat1", 42, 1.0)
|
||||
// handle any errors
|
||||
if err != nil {
|
||||
log.Printf("Error sending metric: %+v", err)
|
||||
}
|
||||
|
||||
*/
|
||||
package statsd
|
||||
Reference in New Issue
Block a user