cache

package
v0.0.0-...-71f1bc8 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendAddrMap

func AppendAddrMap(serviceName, serviceAddr string) error

*

添加映射

func AppendItem

func AppendItem(item string) bool

*

添加白名单

func DelAddrMap

func DelAddrMap(serviceName string) error

*

删除映射

func GetAddMapFromDisk

func GetAddMapFromDisk() interface{}

*

从本地缓存读取 服务地址映射

func GetAddressMapFromRemote

func GetAddressMapFromRemote(key string) bool

*

从远程缓存存读取 服务地址映射

func GetWhiteListFromDisk

func GetWhiteListFromDisk() interface{}

*

通过本地缓存查询 白名单列表

func GetWhiteListFromRemote

func GetWhiteListFromRemote(key string) bool

*

通过远程缓存查询 白名单列表

func LoadCache

func LoadCache(list []interface{})

*

加载缓存

func MapToAddress

func MapToAddress(serviceName string) (bool, string)

*

对外 服务名地址映射

func ModifyAddrMap

func ModifyAddrMap(serviceName, serviceAddr string) error

*

修改映射

func QueryWhiteList

func QueryWhiteList(url, serviceName string) (bool, string)

*

查询白名单

func RemoveItem

func RemoveItem(item string) bool

*

删除白名单

func SendWhiteListToRemote

func SendWhiteListToRemote(key string)

*

将白名单列表 更新至远程缓存

Types

This section is empty.

Jump to

Keyboard shortcuts

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