MCPcopy
hub / github.com/crowdsecurity/crowdsec / SetNillableMessage

Method SetNillableMessage

pkg/database/ent/alert_create.go:84–89  ·  view source on GitHub ↗

SetNillableMessage sets the "message" field if the given value is not nil.

(v *string)

Source from the content-addressed store, hash-verified

82
83// SetNillableMessage sets the "message" field if the given value is not nil.
84func (_c *AlertCreate) SetNillableMessage(v *string) *AlertCreate {
85 if v != nil {
86 _c.SetMessage(*v)
87 }
88 return _c
89}
90
91// SetEventsCount sets the "eventsCount" field.
92func (_c *AlertCreate) SetEventsCount(v int32) *AlertCreate {

Callers

nothing calls this directly

Calls 1

SetMessageMethod · 0.95

Tested by

no test coverage detected