Documentation ¶
Index ¶
- type HTTPServer
- func (s *HTTPServer) Delete(pattern string, handlerFn http.HandlerFunc)
- func (s *HTTPServer) Get(pattern string, handlerFn http.HandlerFunc)
- func (s *HTTPServer) Handle(pattern string, handler http.Handler)
- func (s *HTTPServer) Post(pattern string, handlerFn http.HandlerFunc)
- func (s *HTTPServer) Put(pattern string, handlerFn http.HandlerFunc)
- func (s *HTTPServer) Serve(ctx context.Context) error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPServer ¶
type HTTPServer struct {
// contains filtered or unexported fields
}
func NewHTTPServer ¶
func NewHTTPServer(port int, opts ...Option) *HTTPServer
func (*HTTPServer) Delete ¶
func (s *HTTPServer) Delete(pattern string, handlerFn http.HandlerFunc)
func (*HTTPServer) Get ¶
func (s *HTTPServer) Get(pattern string, handlerFn http.HandlerFunc)
func (*HTTPServer) Post ¶
func (s *HTTPServer) Post(pattern string, handlerFn http.HandlerFunc)
func (*HTTPServer) Put ¶
func (s *HTTPServer) Put(pattern string, handlerFn http.HandlerFunc)
Click to show internal directories.
Click to hide internal directories.