MCPcopy Index your code
hub / github.com/crowdsecurity/crowdsec / SetNillableBucketId

Method SetNillableBucketId

pkg/database/ent/alert_create.go:70–75  ·  view source on GitHub ↗

SetNillableBucketId sets the "bucketId" field if the given value is not nil.

(v *string)

Source from the content-addressed store, hash-verified

68
69// SetNillableBucketId sets the "bucketId" field if the given value is not nil.
70func (_c *AlertCreate) SetNillableBucketId(v *string) *AlertCreate {
71 if v != nil {
72 _c.SetBucketId(*v)
73 }
74 return _c
75}
76
77// SetMessage sets the "message" field.
78func (_c *AlertCreate) SetMessage(v string) *AlertCreate {

Callers

nothing calls this directly

Calls 1

SetBucketIdMethod · 0.95

Tested by

no test coverage detected