mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 12:54:01 +03:00
Add documentation for ipblocklist
This commit is contained in:
+12
-2
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user