Documentation ¶
Index ¶
- func CopyResponse(resp *http.Response) *http.Response
- func CreateCacheKey(req *http.Request) string
- type Cache
- type GoCache
- func (c GoCache) Clear()
- func (c GoCache) Delete(key string)
- func (c GoCache) Get(key string) *http.Response
- func (c GoCache) GetString(key string) string
- func (c GoCache) Has(key string) bool
- func (c GoCache) Set(key string, value *http.Response)
- func (c GoCache) SetString(key string, value string)
- type NoOpCache
- func (c NoOpCache) Clear()
- func (c NoOpCache) Delete(key string)
- func (c NoOpCache) Get(key string) *http.Response
- func (c NoOpCache) GetString(key string) string
- func (c NoOpCache) Has(key string) bool
- func (c NoOpCache) Set(key string, value *http.Response)
- func (c NoOpCache) SetString(key string, value string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCacheKey ¶
Types ¶
type Cache ¶
type Cache interface { Get(key string) *http.Response Set(key string, value *http.Response) GetString(key string) string SetString(key string, value string) Delete(key string) Clear() Has(key string) bool }
func NewNoOpCache ¶
func NewNoOpCache() Cache
Click to show internal directories.
Click to hide internal directories.