func newClusterConfigFrom(cc ClusterConfig) ClusterConfig { prefix := fmt.Sprintf("dgraphtest-%d", rand.NewSource(time.Now().UnixNano()).Int63()%1000000) defaultBackupVol := fmt.Sprintf("%v_backup", prefix) defaultExportVol := fmt.Sprintf("%v_export", prefix) cc.prefix = prefix cc.volumes = map
(n int)
| 146 | |
| 147 | // WithNumAlphas sets the number of alphas in the cluster |
| 148 | func (cc ClusterConfig) WithNumAlphas(n int) ClusterConfig { |
| 149 | cc.numAlphas = n |
| 150 | return cc |
| 151 | } |
| 152 | |
| 153 | // WithNumZeros sets the number of zero nodes in the Dgraph cluster |
| 154 | func (cc ClusterConfig) WithNumZeros(n int) ClusterConfig { |
no outgoing calls