results

package
v0.0.0-...-4c1e4d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL