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

Method SetNillableServer

ent/node_create.go:95–100  ·  view source on GitHub ↗

SetNillableServer sets the "server" field if the given value is not nil.

(s *string)

Source from the content-addressed store, hash-verified

93
94// SetNillableServer sets the "server" field if the given value is not nil.
95func (nc *NodeCreate) SetNillableServer(s *string) *NodeCreate {
96 if s != nil {
97 nc.SetServer(*s)
98 }
99 return nc
100}
101
102// SetSlaveKey sets the "slave_key" field.
103func (nc *NodeCreate) SetSlaveKey(s string) *NodeCreate {

Callers

nothing calls this directly

Calls 1

SetServerMethod · 0.95

Tested by

no test coverage detected