Documentation ¶
Index ¶
- func ApisCacheGet(key string) ([]byte, error)
- func ApisCacheStore(key string, value []byte)
- func GApiCacheGet(key string) ([]byte, error)
- func GApiCacheKey(c *routing.Context) string
- func GApiCacheStore(key string, value []byte)
- func InitCachingService()
- func InvalidateCache()
- func OAuthCacheGet(key string) ([]byte, error)
- func OAuthCacheStore(key string, value []byte)
- func RemoveCache(key string, value []byte)
- func ResponseCacheGApi(c *routing.Context) error
- func ServiceDiscoveryCacheGet(key string) ([]byte, error)
- func ServiceDiscoveryCacheStore(key string, value []byte)
- func StoreCacheGApi(c *routing.Context) error
- func StoreRequestInfoToCache(c *routing.Context, requestInfo CachedRequest)
- type Cache
- type CachedRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApisCacheGet ¶
func ApisCacheStore ¶
func GApiCacheGet ¶
func GApiCacheKey ¶
func GApiCacheStore ¶
func InitCachingService ¶
func InitCachingService()
func InvalidateCache ¶
func InvalidateCache()
func OAuthCacheGet ¶
func OAuthCacheStore ¶
func RemoveCache ¶
func ResponseCacheGApi ¶
func StoreCacheGApi ¶
func StoreRequestInfoToCache ¶
func StoreRequestInfoToCache(c *routing.Context, requestInfo CachedRequest)
Types ¶
type Cache ¶
type Cache struct { ServiceDiscovery *bigcache.BigCache Apis *bigcache.BigCache OAuth *bigcache.BigCache // contains filtered or unexported fields }
var GatewayCache Cache
type CachedRequest ¶
type CachedRequest struct { Service service.Service UpdateServiceCache bool Protection thirdpartyauthentication.ProtectionInfo UpdateProtectionCache bool Response http.ResponseInfo UpdateResponseCache bool }
func GetCacheForRequest ¶
func GetCacheForRequest(c *routing.Context) CachedRequest
Click to show internal directories.
Click to hide internal directories.