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

Method SetNillableSlaveKey

ent/node_update.go:496–501  ·  view source on GitHub ↗

SetNillableSlaveKey sets the "slave_key" field if the given value is not nil.

(s *string)

Source from the content-addressed store, hash-verified

494
495// SetNillableSlaveKey sets the "slave_key" field if the given value is not nil.
496func (nuo *NodeUpdateOne) SetNillableSlaveKey(s *string) *NodeUpdateOne {
497 if s != nil {
498 nuo.SetSlaveKey(*s)
499 }
500 return nuo
501}
502
503// ClearSlaveKey clears the value of the "slave_key" field.
504func (nuo *NodeUpdateOne) ClearSlaveKey() *NodeUpdateOne {

Callers

nothing calls this directly

Calls 1

SetSlaveKeyMethod · 0.95

Tested by

no test coverage detected