safe

package
v1.10.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Copyright 2022 gdy, 272288813@qq.com

Copyright 2022 gdy, 272288813@qq.com

Copyright 2022 gdy, 272288813@qq.com

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlackListAdd

func BlackListAdd(ip string, activelifeDuration int32) (string, error)

func BlackListDelete

func BlackListDelete(ip string) error

func BlackListFlush

func BlackListFlush(lock bool) error

func BlackListInit

func BlackListInit()

func DeleteBlackListlice

func DeleteBlackListlice(a []safeconf.BlackListItem, deleteIndex int) []safeconf.BlackListItem

func DeleteWhiteListlice

func DeleteWhiteListlice(a []safeconf.WhiteListItem, deleteIndex int) []safeconf.WhiteListItem

func GetBlackList

func GetBlackList() []safeconf.BlackListItem

func GetWhiteList

func GetWhiteList() []safeconf.WhiteListItem

func GetWhiteListBaseConfigure

func GetWhiteListBaseConfigure() safeconf.WhiteListBaseConfigure

func Init

func Init()

func SafeCheck

func SafeCheck(mode, ip string) bool

func SetWhiteListBaseConfigure

func SetWhiteListBaseConfigure(activelifeDuration int32, url, account, password string) error

func WhiteListAdd

func WhiteListAdd(ip string, activelifeDuration int32) (string, error)

func WhiteListDelete

func WhiteListDelete(ip string) error

func WhiteListFlush

func WhiteListFlush(lock bool) error

func WhiteListInit

func WhiteListInit()

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL