Documentation ¶ Index ¶ Variables type HFunc type MyHandler func (h *MyHandler) Get(path string, fn HFunc) func (h *MyHandler) Post(path string, fn HFunc) func (h *MyHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) type Server func New() *Server func (s *Server) Start(address string, cron *core.Manager) error Constants ¶ This section is empty. Variables ¶ View Source var Set = wire.NewSet(New) Functions ¶ This section is empty. Types ¶ type HFunc ¶ type HFunc = func(w http.ResponseWriter, req *http.Request) type MyHandler ¶ type MyHandler struct { // contains filtered or unexported fields } func (*MyHandler) Get ¶ func (h *MyHandler) Get(path string, fn HFunc) func (*MyHandler) Post ¶ func (h *MyHandler) Post(path string, fn HFunc) func (*MyHandler) ServeHTTP ¶ func (h *MyHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) type Server ¶ type Server struct{} func New ¶ func New() *Server func (*Server) Start ¶ func (s *Server) Start(address string, cron *core.Manager) error Source Files ¶ View all Source files handler.go server.go Click to show internal directories. Click to hide internal directories.