Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddBlockList ¶
AddBlockList to add some ip for blocking with expire time
func Middleware ¶
Middleware this must not use like this must implement
func RegisterNewPlugin ¶
func RegisterNewPlugin() (string, bool, map[string]interface{}, func(config map[string]interface{}) func(handler http.Handler) http.Handler)
RegisterNewPlugin for add this plugin to plugin center
func UpdateBlockList ¶
func UpdateBlockList()
UpdateBlockList for update all block list for delete expired
Types ¶
type APIIP ¶
type APIIP struct {
// contains filtered or unexported fields
}
APIIP this struct fill with all values receive from ip-api and the method are for
type BlockIPList ¶
type BlockIPList struct {
// contains filtered or unexported fields
}
BlockIPList struct for all ips that banned from service
Click to show internal directories.
Click to hide internal directories.