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

Method String

pkg/database/ent/lock.go:103–114  ·  view source on GitHub ↗

String implements the fmt.Stringer.

()

Source from the content-addressed store, hash-verified

101
102// String implements the fmt.Stringer.
103func (_m *Lock) String() string {
104 var builder strings.Builder
105 builder.WriteString("Lock(")
106 builder.WriteString(fmt.Sprintf("id=%v, ", _m.ID))
107 builder.WriteString("name=")
108 builder.WriteString(_m.Name)
109 builder.WriteString(", ")
110 builder.WriteString("created_at=")
111 builder.WriteString(_m.CreatedAt.Format(time.ANSIC))
112 builder.WriteByte(')')
113 return builder.String()
114}
115
116// Locks is a parsable slice of Lock.
117type Locks []*Lock

Callers 3

FlushAlertsMethod · 0.45
setFilePermFunction · 0.45
handleTimeFiltersFunction · 0.45

Calls 1

FormatMethod · 0.45

Tested by

no test coverage detected