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

Method SetKey

pkg/database/ent/mutation.go:10411–10413  ·  view source on GitHub ↗

SetKey sets the "key" field.

(s string)

Source from the content-addressed store, hash-verified

10409
10410// SetKey sets the "key" field.
10411func (m *MetaMutation) SetKey(s string) {
10412 m.key = &s
10413}
10414
10415// Key returns the value of the "key" field in the mutation.
10416func (m *MetaMutation) Key() (r string, exists bool) {

Callers 2

SetFieldMethod · 0.95
buildMetaCreatesFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected