...
1
2
5
6
21
22 package getestservice
23
24 import (
25 "sync"
26 "golang.conradwood.net/go-easyops/client"
27 )
28 var (
29 lock_CtxTestClient_4 sync.Mutex
30 client_CtxTestClient_4 CtxTestClient
31 )
32
33 func GetCtxTestClient() CtxTestClient {
34 if client_CtxTestClient_4 != nil {
35 return client_CtxTestClient_4
36 }
37
38 lock_CtxTestClient_4.Lock()
39 if client_CtxTestClient_4 != nil {
40 lock_CtxTestClient_4.Unlock()
41 return client_CtxTestClient_4
42 }
43
44 client_CtxTestClient_4 = NewCtxTestClient(client.Connect(CtxTestLookupID()))
45 lock_CtxTestClient_4.Unlock()
46 return client_CtxTestClient_4
47 }
48
49 func CtxTestLookupID() string { return "getestservice.CtxTest" }
50
51 func init() {
52 client.RegisterDependency("getestservice.CtxTest")
53 AddService("getestservice.CtxTest")
54 }
55
View as plain text