WithNow overrides the clock used by the kernel.
(now func() time.Time)
| 80 | |
| 81 | // WithNow overrides the clock used by the kernel. |
| 82 | func WithNow(now func() time.Time) Option { |
| 83 | return func(k *Kernel) { |
| 84 | if now != nil { |
| 85 | k.now = now |
| 86 | } |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | // WithMaxSpecBytes overrides the per-record payload ceiling. |
| 91 | func WithMaxSpecBytes(limit int) Option { |
no outgoing calls