Documentation ¶
Index ¶
- Constants
- Variables
- func ErrorHandler(w http.ResponseWriter, r *http.Request, err error)
- type ContextKey
- type Server
- func (s *Server) DeleteTodoId(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetAlpine(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetAssets(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetGmtResult(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetIndex(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetNewTodo(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetNumbersApi(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetProject(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetTodo(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetTodoId(w http.ResponseWriter, r *http.Request)
- func (s *Server) PostFeedback(w http.ResponseWriter, r *http.Request)
- func (s *Server) PostTodo(w http.ResponseWriter, r *http.Request)
- func (s *Server) PostTodoId(w http.ResponseWriter, r *http.Request)
- func (s *Server) RegisterHandlers()
- func (s *Server) TodoCtx(next http.Handler) http.Handler
- func (s *Server) WriteTodosTable(w http.ResponseWriter, r *http.Request)
Constants ¶
View Source
const N = 100
Variables ¶
Functions ¶
func ErrorHandler ¶
func ErrorHandler(w http.ResponseWriter, r *http.Request, err error)
Types ¶
type ContextKey ¶
type ContextKey string
const ( CtxKeyTodo ContextKey = "todo" CtxKeyStatus ContextKey = "status" )
type Server ¶
func (*Server) DeleteTodoId ¶
func (s *Server) DeleteTodoId(w http.ResponseWriter, r *http.Request)
func (*Server) GetGmtResult ¶
func (s *Server) GetGmtResult(w http.ResponseWriter, r *http.Request)
func (*Server) GetNewTodo ¶
func (s *Server) GetNewTodo(w http.ResponseWriter, r *http.Request)
func (*Server) GetNumbersApi ¶
func (s *Server) GetNumbersApi(w http.ResponseWriter, r *http.Request)
func (*Server) GetProject ¶
func (s *Server) GetProject(w http.ResponseWriter, r *http.Request)
func (*Server) PostFeedback ¶
func (s *Server) PostFeedback(w http.ResponseWriter, r *http.Request)
func (*Server) PostTodoId ¶
func (s *Server) PostTodoId(w http.ResponseWriter, r *http.Request)
func (*Server) RegisterHandlers ¶
func (s *Server) RegisterHandlers()
func (*Server) WriteTodosTable ¶
func (s *Server) WriteTodosTable(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.