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

Method SetSlaveKey

ent/node_create.go:483–486  ·  view source on GitHub ↗

SetSlaveKey sets the "slave_key" field.

(v string)

Source from the content-addressed store, hash-verified

481
482// SetSlaveKey sets the "slave_key" field.
483func (u *NodeUpsert) SetSlaveKey(v string) *NodeUpsert {
484 u.Set(node.FieldSlaveKey, v)
485 return u
486}
487
488// UpdateSlaveKey sets the "slave_key" field to the value that was provided on create.
489func (u *NodeUpsert) UpdateSlaveKey() *NodeUpsert {

Callers

nothing calls this directly

Calls 1

SetMethod · 0.65

Tested by

no test coverage detected