Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller passes state to our handlers
func (*Controller) GetValue ¶
func (c *Controller) GetValue(UseDefault bool) http.HandlerFunc
GetValue is a closure that wraps a HandlerFunc, if UseDefault is true value will always be "default" else it'll be whatever is stored in storage
func (*Controller) SetValue ¶
func (c *Controller) SetValue(w http.ResponseWriter, r *http.Request)
SetValue modifies the underlying storage of the controller object
type MemStorage ¶
type MemStorage struct {
// contains filtered or unexported fields
}
MemStorage implements Storage
Click to show internal directories.
Click to hide internal directories.