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

Method WithACL

dgraphtest/config.go:178–182  ·  view source on GitHub ↗

WithAcl enables ACL feature for Dgraph cluster

(aclTTL time.Duration)

Source from the content-addressed store, hash-verified

176
177// WithAcl enables ACL feature for Dgraph cluster
178func (cc ClusterConfig) WithACL(aclTTL time.Duration) ClusterConfig {
179 cc.acl = true
180 cc.aclTTL = aclTTL
181 return cc
182}
183
184// WithAclAlg sets the JWT signing algorithm for dgraph ACLs
185func (cc ClusterConfig) WithAclAlg(alg jwt.SigningMethod) ClusterConfig {

Callers 15

TestCheckUpgradeFunction · 0.80
TestQueryDuplicateNodesFunction · 0.80
TestMainFunction · 0.80
TestShortestPathFunction · 0.80
TestBulkLoadVectorIndexFunction · 0.80
TestVectorDropAllFunction · 0.80

Calls

no outgoing calls

Tested by 15

TestCheckUpgradeFunction · 0.64
TestQueryDuplicateNodesFunction · 0.64
TestMainFunction · 0.64
TestShortestPathFunction · 0.64
TestBulkLoadVectorIndexFunction · 0.64
TestVectorDropAllFunction · 0.64