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

Method SetStartIP

pkg/database/ent/mutation.go:6527–6530  ·  view source on GitHub ↗

SetStartIP sets the "start_ip" field.

(i int64)

Source from the content-addressed store, hash-verified

6525
6526// SetStartIP sets the "start_ip" field.
6527func (m *DecisionMutation) SetStartIP(i int64) {
6528 m.start_ip = &i
6529 m.addstart_ip = nil
6530}
6531
6532// StartIP returns the value of the "start_ip" field in the mutation.
6533func (m *DecisionMutation) StartIP() (r int64, exists bool) {

Callers 10

SetFieldMethod · 0.95
AddToAllowlistMethod · 0.45
createDecisionFunction · 0.45
CreateOrUpdateAlertMethod · 0.45
createDecisionBatchMethod · 0.45
TestGetDecisionsCountFunction · 0.45

Calls

no outgoing calls

Tested by 5

createDecisionFunction · 0.36
TestGetDecisionsCountFunction · 0.36