Documentation ¶
Index ¶
Constants ¶
View Source
const LostThreshold = 5 * time.Minute
Variables ¶
View Source
var Mapper = make(map[string]Creator)
View Source
var ( // ProtectTime is the cooling time of a client IP changing for the same passage ProtectTime = map[PassageUse]time.Duration{ PassageUseUser: 0, PassageUseRelay: 90 * time.Second, PassageUseManager: 300 * time.Second, } )
Functions ¶
func SyncPassages ¶
Types ¶
type ContentionCache ¶
type ContentionCache struct {
// contains filtered or unexported fields
}
func NewContentionCache ¶
func NewContentionCache() *ContentionCache
type ContentionCountdown ¶
type ContentionCountdown struct {
// contains filtered or unexported fields
}
type PassageUse ¶
type PassageUse string
const ( PassageUseUser PassageUse = "user" PassageUseRelay PassageUse = "relay" PassageUseManager PassageUse = "manager" )
Click to show internal directories.
Click to hide internal directories.