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

Method SetComment

pkg/database/ent/mutation.go:3512–3514  ·  view source on GitHub ↗

SetComment sets the "comment" field.

(s string)

Source from the content-addressed store, hash-verified

3510
3511// SetComment sets the "comment" field.
3512func (m *AllowListItemMutation) SetComment(s string) {
3513 m.comment = &s
3514}
3515
3516// Comment returns the value of the "comment" field in the mutation.
3517func (m *AllowListItemMutation) Comment() (r string, exists bool) {

Callers 2

SetFieldMethod · 0.95
AddToAllowlistMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected