WithLogIgnorePaths silences log messages for a list of URLs.
(paths []string)
| 133 | |
| 134 | // WithLogIgnorePaths silences log messages for a list of URLs. |
| 135 | func WithLogIgnorePaths(paths []string) Option { |
| 136 | return func(o *options) { |
| 137 | o.logIgnorePaths = paths |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | // New builds a new server. |
| 142 | func New(ctx context.Context, opts ...Option) (*Server, error) { |