-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathoptions.go
More file actions
33 lines (26 loc) · 925 Bytes
/
options.go
File metadata and controls
33 lines (26 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package sebel
import (
"io"
"time"
"github.com/teler-sh/sebel/pkg/sslbl"
)
// Options holds configuration settings for the [Sebel] package.
type Options struct {
// DisableSSLBlacklist, when set to true, disables SSL/TLS certificate
// blacklist checks.
DisableSSLBlacklist bool
// Output specifies the writer for logging blacklist detections.
// If nil, no output is written.
Output io.Writer
// Formatter customizes the output format for blacklist detections.
// If nil, a default format is used.
Formatter func(record *sslbl.Record, fingerprint string) string
// DataRefreshInterval specifies how often to refresh SSLBL data in the
// background. SSLBL updates every 5 minutes, so values less than 5 minutes
// are not recommended.
//
// If zero or negative, background refresh is disabled.
DataRefreshInterval time.Duration
// TODO(dwisiswant0): Add these fields
// DisableHostBlacklist bool
}