mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
The NewRelic module relies on yfronto/newrelic, which no longer exists. yfronto deleted that directory quite awhile ago, and since then it has been vendored. But vendoring a missing repository creates problems when trying to update the vendored code. This PR brings the yfronto/newrelic code into the mainline. Signed-off-by: Chris Cummer <chriscummer@me.com>
18 lines
317 B
Go
18 lines
317 B
Go
package newrelic
|
|
|
|
import (
|
|
"net/url"
|
|
"time"
|
|
)
|
|
|
|
const (
|
|
testAPIKey = "test_api_key"
|
|
testTimeRawString = "2016-01-20T20:29:38Z"
|
|
)
|
|
|
|
var (
|
|
testTime, _ = time.Parse(time.RFC3339, testTimeRawString)
|
|
testTimeString = testTime.String()
|
|
testTimeStringEscaped = url.QueryEscape(testTimeString)
|
|
)
|