MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / ClearedEdges

Method ClearedEdges

ent/mutation.go:12460–12469  ·  view source on GitHub ↗

ClearedEdges returns all edge names that were cleared in this mutation.

()

Source from the content-addressed store, hash-verified

12458
12459// ClearedEdges returns all edge names that were cleared in this mutation.
12460func (m *ShareMutation) ClearedEdges() []string {
12461 edges := make([]string, 0, 2)
12462 if m.cleareduser {
12463 edges = append(edges, share.EdgeUser)
12464 }
12465 if m.clearedfile {
12466 edges = append(edges, share.EdgeFile)
12467 }
12468 return edges
12469}
12470
12471// EdgeCleared returns a boolean which indicates if the edge with the given name
12472// was cleared in this mutation.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected