Documentation ¶
Index ¶
- type API
- func (a *API) Add(req string, res *http.Response) error
- func (a *API) AddData(req string, res []byte) error
- func (a *API) All() ([]cache.WebPair, error)
- func (a *API) Delete(path string) error
- func (a *API) DeleteRequest(w cache.Request) error
- func (a *API) Empty() error
- func (a *API) Get(path string) (cache.Request, cache.Response, error)
- func (a *API) GetRequest(w cache.Request) (cache.Response, error)
- func (a *API) Put(req cache.Request, res cache.Response) error
- func (a *API) PutPath(path string, res cache.Response) error
- func (a *API) Serve(w http.ResponseWriter, r *http.Request) error
- func (a *API) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API defines a structure which implements the cache.Cache interface.
func (*API) DeleteRequest ¶
DeleteRequest removes the underline request from the cache.
func (*API) GetRequest ¶
GetRequest calls CacheAPI.Match and passing in a default MatchAttr value.
Click to show internal directories.
Click to hide internal directories.