split up library and removed Stop() panic when called twice

This commit is contained in:
ston1th 2018-09-12 23:35:03 +02:00
commit 826d035d3e
4 changed files with 117 additions and 100 deletions

View file

@ -22,7 +22,7 @@ type MemBlacklist struct {
list BlacklistMap
}
// NewMemBlacklist
// NewMemBlacklist implements the Blacklist interface using an in-memory map
func NewMemBlacklist() *MemBlacklist {
return &MemBlacklist{list: make(BlacklistMap)}
}