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

Method SetEndIP

pkg/database/ent/mutation.go:6597–6600  ·  view source on GitHub ↗

SetEndIP sets the "end_ip" field.

(i int64)

Source from the content-addressed store, hash-verified

6595
6596// SetEndIP sets the "end_ip" field.
6597func (m *DecisionMutation) SetEndIP(i int64) {
6598 m.end_ip = &i
6599 m.addend_ip = nil
6600}
6601
6602// EndIP returns the value of the "end_ip" field in the mutation.
6603func (m *DecisionMutation) EndIP() (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