Documentation
¶
Index ¶
- type GatewayConfig
- type GatewayConfigCache
- func (*GatewayConfigCache) ClearCache()
- func (*GatewayConfigCache) DeleteCache(appId string)
- func (*GatewayConfigCache) GetCache(appId string) (GatewayConfig, bool)
- func (g *GatewayConfigCache) Listen(group, dataId, data string)
- func (*GatewayConfigCache) PutCache(gatewayConfig GatewayConfig)
- func (g *GatewayConfigCache) RefreshCache()
- func (*GatewayConfigCache) ToJson() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GatewayConfig ¶
type GatewayConfig struct { AppId string `json:"appId"` AppName string `json:"appName"` AesKey string `json:"aesKey"` AesType string `json:"aesType"` RsaPublicKey string `json:"rsaPublicKey"` RsaPrivateKey string `json:"rsaPrivateKey"` SignType string `json:"signType"` IsEnable int `json:"isEnable"` }
type GatewayConfigCache ¶
type GatewayConfigCache struct {
// contains filtered or unexported fields
}
func GetGatewayConfigCache ¶
func GetGatewayConfigCache() *GatewayConfigCache
func (*GatewayConfigCache) ClearCache ¶
func (*GatewayConfigCache) ClearCache()
func (*GatewayConfigCache) DeleteCache ¶
func (*GatewayConfigCache) DeleteCache(appId string)
func (*GatewayConfigCache) GetCache ¶
func (*GatewayConfigCache) GetCache(appId string) (GatewayConfig, bool)
func (*GatewayConfigCache) Listen ¶
func (g *GatewayConfigCache) Listen(group, dataId, data string)
func (*GatewayConfigCache) PutCache ¶
func (*GatewayConfigCache) PutCache(gatewayConfig GatewayConfig)
func (*GatewayConfigCache) RefreshCache ¶
func (g *GatewayConfigCache) RefreshCache()
func (*GatewayConfigCache) ToJson ¶
func (*GatewayConfigCache) ToJson() string
Click to show internal directories.
Click to hide internal directories.