MCPcopy
hub / github.com/dgraph-io/dgraph / GetFeaturesList

Function GetFeaturesList

worker/groups.go:1098–1116  ·  view source on GitHub ↗

GetFeaturesList returns a list of Dgraph features that are available.

()

Source from the content-addressed store, hash-verified

1096
1097// GetFeaturesList returns a list of Dgraph features that are available.
1098func GetFeaturesList() []string {
1099 var ee []string
1100 if Config.AclSecretKey != nil {
1101 ee = append(ee, "acl")
1102 ee = append(ee, "multi_tenancy")
1103 }
1104 if x.WorkerConfig.EncryptionKey != nil {
1105 ee = append(ee, "encryption_at_rest", "encrypted_backup_restore", "encrypted_export")
1106 } else {
1107 ee = append(ee, "backup_restore")
1108 }
1109 if x.WorkerConfig.Audit {
1110 ee = append(ee, "audit")
1111 }
1112 if Config.ChangeDataConf != "" {
1113 ee = append(ee, "cdc")
1114 }
1115 return ee
1116}
1117
1118// SubscribeForUpdates will listen for updates for the given group.
1119func SubscribeForUpdates(prefixes [][]byte, ignore string, cb func(kvs *badgerpb.KVList),

Callers 1

HealthMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected