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

Interface AclEntity

acl/acl.go:183–188  ·  view source on GitHub ↗

AclEntity is an interface that must be met by all the types of entities (i.e users, groups) in the ACL system.

Source from the content-addressed store, hash-verified

181// AclEntity is an interface that must be met by all the types of entities (i.e users, groups)
182// in the ACL system.
183type AclEntity interface {
184 // GetUid returns the UID of the entity.
185 // The implementation of GetUid must check the case that the entity is nil
186 // and return an empty string accordingly.
187 GetUid() string
188}
189
190func userOrGroupDel(conf *viper.Viper, userOrGroupId string,
191 queryFn func(context.Context, *dgo.Txn, string) (AclEntity, error)) error {

Callers 1

userOrGroupDelFunction · 0.65

Implementers 5

Postingprotos/pb/pb.pb.go
BackupKeyprotos/pb/pb.pb.go
UpdateGraphQLSchemaResponseprotos/pb/pb.pb.go
Useracl/utils.go
Groupacl/utils.go

Calls

no outgoing calls

Tested by

no test coverage detected