package rpc_apis import ( "gd_management/rpc_apis/gd_access_log" "gd_management/common.in/config" ) var AccessLog *gd_access_log.GdAccessLogXClient func Init(etcdAddrs []string, conf *config.Configure) { AccessLog = &gd_access_log.GdAccessLogXClient{} AccessLog.Init(etcdAddrs, conf.Rpc.BasePath, conf.Rpc.AccessLog.Name) } func InitForK8s(conf *config.Configure) { AccessLog = &gd_access_log.GdAccessLogXClient{} AccessLog.InitForK8s(conf.Rpc.AccessLog.Name, conf.Rpc.AccessLog.ServiceName, conf.Rpc.AccessLog.ServicePort.String()) }