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

Method SetNillableSlaveKey

ent/node_update.go:129–134  ·  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

127
128// SetNillableSlaveKey sets the "slave_key" field if the given value is not nil.
129func (nu *NodeUpdate) SetNillableSlaveKey(s *string) *NodeUpdate {
130 if s != nil {
131 nu.SetSlaveKey(*s)
132 }
133 return nu
134}
135
136// ClearSlaveKey clears the value of the "slave_key" field.
137func (nu *NodeUpdate) ClearSlaveKey() *NodeUpdate {

Callers

nothing calls this directly

Calls 1

SetSlaveKeyMethod · 0.95

Tested by

no test coverage detected