src/server/pkg/serviceenv/service_env.go
func InitServiceEnv(config *Configuration) *ServiceEnv {
	env := InitPachOnlyEnv(config)
	env.etcdAddress = fmt.Sprintf("http://%s", net.JoinHostPort(env.EtcdHost, env.EtcdPort))
	env.etcdEg.Go(env.initEtcdClient)
	return env // env is not ready yet
}
func InitServiceEnv(config *Configuration) *ServiceEnv {
	env := InitPachOnlyEnv(config)
	env.etcdAddress = fmt.Sprintf("http://%s", net.JoinHostPort(env.EtcdHost, env.EtcdPort))
	env.etcdEg.Go(env.initEtcdClient)
	return env // env is not ready yet
}
func InitServiceEnv ( config * Configuration ) * ServiceEnv { env := InitPachOnlyEnv ( config ) env . etcdAddress = fmt . Sprintf ( " " , net . JoinHostPort ( env . EtcdHost , env . EtcdPort ) ) env . etcdEg . Go ( env . initEtcdClient ) return env // env is not ready yet }
// InitServiceEnv initializes this service environment. This dials a GRPC
// connection to pachd and etcd (in a background goroutine), and creates the
// template pachClient used by future calls to GetPachClient.
//
// This call returns immediately, but GetPachClient and GetEtcdClient block
// until their respective clients are ready.
InitServiceEnv initializes this service environment . This dials a GRPC connection to pachd and etcd ( in a background goroutine ) and creates the template pachClient used by future calls to GetPachClient . This call returns immediately but GetPachClient and GetEtcdClient block until their respective clients are ready .