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

Method IPAddress

pkg/database/ent/mutation.go:4787–4793  ·  view source on GitHub ↗

IPAddress returns the value of the "ip_address" field in the mutation.

()

Source from the content-addressed store, hash-verified

4785
4786// IPAddress returns the value of the "ip_address" field in the mutation.
4787func (m *BouncerMutation) IPAddress() (r string, exists bool) {
4788 v := m.ip_address
4789 if v == nil {
4790 return
4791 }
4792 return *v, true
4793}
4794
4795// OldIPAddress returns the old "ip_address" field's value of the Bouncer entity.
4796// If the Bouncer object wasn't provided to the builder, the object is fetched from the database.

Callers 5

FieldMethod · 0.95
defaultsMethod · 0.80
createSpecMethod · 0.80
sqlSaveMethod · 0.80
sqlSaveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected