Documentation ¶
Index ¶
- type WebServer
- func (s *WebServer) AddDeleteHandler(path string, handler http.HandlerFunc)
- func (s *WebServer) AddGetHandler(path string, handler http.HandlerFunc)
- func (s *WebServer) AddGroupRoute(route func(r chi.Router))
- func (s *WebServer) AddPostHandler(path string, handler http.HandlerFunc)
- func (s *WebServer) Start()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebServer ¶
type WebServer struct { Router chi.Router GetHandlers map[string]http.HandlerFunc PostHandlers map[string]http.HandlerFunc DeleteHandlers map[string]http.HandlerFunc GroupRoutes []func(r chi.Router) WebServerPort string }
func NewWebServer ¶
func (*WebServer) AddDeleteHandler ¶
func (s *WebServer) AddDeleteHandler(path string, handler http.HandlerFunc)
func (*WebServer) AddGetHandler ¶
func (s *WebServer) AddGetHandler(path string, handler http.HandlerFunc)
func (*WebServer) AddGroupRoute ¶
func (s *WebServer) AddGroupRoute(route func(r chi.Router))
func (*WebServer) AddPostHandler ¶
func (s *WebServer) AddPostHandler(path string, handler http.HandlerFunc)
Click to show internal directories.
Click to hide internal directories.