mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 20:04:02 +03:00
FILE / ScuroNeko/mtg
ipblocklist/init.go
Исходный файл и его история в репозитории.
19 lines
556 B
Go
19 lines
556 B
Go
// 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 (
|
|
// 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
|
|
)
|