src/server/enterprise/server/api_server.go
func NewEnterpriseServer(env *serviceenv.ServiceEnv, etcdPrefix string) (ec.APIServer, error) {
	s := &apiServer{
		pachLogger: log.NewLogger("enterprise.API"),
		env:        env,
		enterpriseToken: col.NewCollection(
			env.GetEtcdClient(),
			etcdPrefix, // only one collection--no extra prefix needed
			nil,
			&ec.EnterpriseRecord{},
			nil,
			nil,
		),
	}
	s.enterpriseExpiration.Store(time.Time{})
	go s.watchEnterpriseToken(etcdPrefix)
	return s, nil
}
func NewEnterpriseServer(env *serviceenv.ServiceEnv, etcdPrefix string) (ec.APIServer, error) {
	s := &apiServer{
		pachLogger: log.NewLogger("enterprise.API"),
		env:        env,
		enterpriseToken: col.NewCollection(
			env.GetEtcdClient(),
			etcdPrefix, // only one collection--no extra prefix needed
			nil,
			&ec.EnterpriseRecord{},
			nil,
			nil,
		),
	}
	s.enterpriseExpiration.Store(time.Time{})
	go s.watchEnterpriseToken(etcdPrefix)
	return s, nil
}
// NewEnterpriseServer returns an implementation of ec.APIServer.