Documentation ¶
Index ¶
- type Storage
- type StoreHandler
- type Todo
- type TodoAdapter
- type TodoInteractor
- type TodoManager
- type TodoRepo
- type WebHandler
- func (wh *WebHandler) Defer(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (wh *WebHandler) List(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (wh *WebHandler) Pop(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (wh *WebHandler) Push(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StoreHandler ¶
type StoreHandler struct {
Items []interface{}
}
func (*StoreHandler) Defer ¶
func (sh *StoreHandler) Defer() error
func (*StoreHandler) Pop ¶
func (sh *StoreHandler) Pop() (interface{}, error)
func (*StoreHandler) Push ¶
func (sh *StoreHandler) Push(i interface{}) error
func (*StoreHandler) Query ¶
func (sh *StoreHandler) Query() []interface{}
type TodoAdapter ¶
type TodoInteractor ¶
type TodoManager ¶
type TodoManager struct {
// contains filtered or unexported fields
}
func NewTodoManager ¶
func NewTodoManager(todoRepo TodoAdapter) *TodoManager
func (*TodoManager) Defer ¶
func (tm *TodoManager) Defer() error
Defers the first item down to the bottom
func (*TodoManager) List ¶
func (tm *TodoManager) List() []*Todo
func (*TodoManager) Pop ¶
func (tm *TodoManager) Pop() (*Todo, error)
Removes the first item on the list
func (*TodoManager) Push ¶
func (tm *TodoManager) Push(t *Todo) error
type WebHandler ¶
type WebHandler struct {
// contains filtered or unexported fields
}
func NewWebHandler ¶
func NewWebHandler(todoManager TodoInteractor) *WebHandler
func (*WebHandler) Defer ¶
func (wh *WebHandler) Defer(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (*WebHandler) List ¶
func (wh *WebHandler) List(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (*WebHandler) Pop ¶
func (wh *WebHandler) Pop(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (*WebHandler) Push ¶
func (wh *WebHandler) Push(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
Click to show internal directories.
Click to hide internal directories.