Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegistRoutes ¶
func RegistRoutes(c *Server)
Types ¶
type Route ¶
type Route struct { Name string Method string Pattern string HandlerFunc http.HandlerFunc }
type Server ¶
type Server struct { ////其它信息 ////addr Router *httprouter.Router // contains filtered or unexported fields }
func (*Server) AddRoute ¶
func (c *Server) AddRoute(method string, path string, handler http.HandlerFunc)
type ServerConf ¶
type ServerConf struct { }
Click to show internal directories.
Click to hide internal directories.