Add documentation for ipblocklist

This commit is contained in:
9seconds
2021-04-05 16:09:21 +03:00
parent 04b88cc864
commit 0274b3436a
6 changed files with 82 additions and 28 deletions
+12 -2
View File
@@ -1,8 +1,18 @@
// Package ipblocklist contains default implementation of the
// IPBlocklist for mtg.
//
// Please check documentation for mtglib.IPBlocklist interface to get an
// idea of this abstraction.
package ipblocklist
import "time"
const (
DefaultDownloadConcurrency = 1
DefaultUpdateEach = 12 * time.Hour
// DefaultFireholDownloadConcurrency defines a default max number of
// concurrent downloads of ip blocklists for Firehol.
DefaultFireholDownloadConcurrency = 1
// DefaultFireholUpdateEach defines a default time period when
// Firehol requests updates of the blocklists.
DefaultFireholUpdateEach = 6 * time.Hour
)