1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
package location
const (
TestAccessKeyId = "MY_ACCESS_KEY_ID"
TestAccessKeySecret = "MY_ACCESS_KEY_SECRET"
)
var testClient *Client
func NewTestClient() *Client {
if testClient == nil {
testClient = NewClient(TestAccessKeyId, TestAccessKeySecret)
}
return testClient
}
var testDebugClient *Client
func NewTestClientForDebug() *Client {
if testDebugClient == nil {
testDebugClient = NewClient(TestAccessKeyId, TestAccessKeySecret)
testDebugClient.SetDebug(true)
}
return testDebugClient
}
|