Documentation
¶
Index ¶
- type Cache
- func (c Cache) Count() int
- func (c Cache) Delete(key string)
- func (c Cache) Get(requestBody []byte, requestParams string) (CacheEntry, bool, string)
- func (c Cache) GetByKey(key string) (CacheEntry, bool)
- func (c Cache) Keys() []string
- func (c Cache) MaxAge() time.Duration
- func (c Cache) Set(requestBody []byte, requestParams string, requestHeader http.Header, ...)
- func (c Cache) Size() uint64
- type CacheEntry
- func (e *CacheEntry) Clone() CacheEntry
- func (e *CacheEntry) ResponseBodyBrotli() []byte
- func (e *CacheEntry) ResponseBodyDeflate() []byte
- func (e *CacheEntry) ResponseBodyGzip() []byte
- func (e *CacheEntry) ResponseBodyPlain() []byte
- func (e *CacheEntry) ResponseHeader() http.Header
- func (e *CacheEntry) ResponseModel() interface{}
- func (e *CacheEntry) ResponseStatusCode() int
- func (e *CacheEntry) String() string
- func (e *CacheEntry) UpdatedOn() time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
type CacheEntry ¶ added in v1.0.85
type CacheEntry struct {
// contains filtered or unexported fields
}
func (*CacheEntry) Clone ¶ added in v1.0.85
func (e *CacheEntry) Clone() CacheEntry
func (*CacheEntry) ResponseBodyBrotli ¶ added in v1.0.85
func (e *CacheEntry) ResponseBodyBrotli() []byte
func (*CacheEntry) ResponseBodyDeflate ¶ added in v1.0.85
func (e *CacheEntry) ResponseBodyDeflate() []byte
func (*CacheEntry) ResponseBodyGzip ¶ added in v1.0.85
func (e *CacheEntry) ResponseBodyGzip() []byte
func (*CacheEntry) ResponseBodyPlain ¶ added in v1.0.87
func (e *CacheEntry) ResponseBodyPlain() []byte
func (*CacheEntry) ResponseHeader ¶ added in v1.0.85
func (e *CacheEntry) ResponseHeader() http.Header
func (*CacheEntry) ResponseModel ¶ added in v1.0.85
func (e *CacheEntry) ResponseModel() interface{}
func (*CacheEntry) ResponseStatusCode ¶ added in v1.0.85
func (e *CacheEntry) ResponseStatusCode() int
func (*CacheEntry) String ¶ added in v1.0.85
func (e *CacheEntry) String() string
func (*CacheEntry) UpdatedOn ¶ added in v1.0.85
func (e *CacheEntry) UpdatedOn() time.Time
Click to show internal directories.
Click to hide internal directories.