Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResultCache ¶
type ResultCache struct {
*groupcache.Group
}
func NewResultCache ¶
func NewResultCache(logger *log.Logger, size int64, getterFunc resultGetterFunc) *ResultCache
func (*ResultCache) GetResults ¶
func (cache *ResultCache) GetResults(key string, data interface{}) error
type ResultHandler ¶
type ResultHandler struct { Logger *log.Logger ResultCache *ResultCache }
func (*ResultHandler) ServeHTTP ¶
func (h *ResultHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.