Len returns the number of items in the collection.
()
| 41 | |
| 42 | // Len returns the number of items in the collection. |
| 43 | func (o *ObservedLogs) Len() int { |
| 44 | o.mu.RLock() |
| 45 | n := len(o.logs) |
| 46 | o.mu.RUnlock() |
| 47 | return n |
| 48 | } |
| 49 | |
| 50 | // All returns a copy of all the observed logs. |
| 51 | func (o *ObservedLogs) All() []LoggedEntry { |
no outgoing calls