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

Method SetSlaveKey

ent/node_create.go:1083–1087  ·  view source on GitHub ↗

SetSlaveKey sets the "slave_key" field.

(v string)

Source from the content-addressed store, hash-verified

1081
1082// SetSlaveKey sets the "slave_key" field.
1083func (u *NodeUpsertBulk) SetSlaveKey(v string) *NodeUpsertBulk {
1084 return u.Update(func(s *NodeUpsert) {
1085 s.SetSlaveKey(v)
1086 })
1087}
1088
1089// UpdateSlaveKey sets the "slave_key" field to the value that was provided on create.
1090func (u *NodeUpsertBulk) UpdateSlaveKey() *NodeUpsertBulk {

Callers

nothing calls this directly

Calls 1

UpdateMethod · 0.95

Tested by

no test coverage detected