Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache interface { Add(key, value interface{}) Get(key interface{}) (value interface{}, ok bool) Remove(key interface{}) }
Cache is the contract of cache.
type Handler ¶
type Handler interface { Respond(w http.ResponseWriter, message string, data interface{}) Abort(w http.ResponseWriter, message string, code int) Error(w http.ResponseWriter, err error, code int) Static(path string) string }
Handler is the contract of an HTTP handler.
Click to show internal directories.
Click to hide internal directories.