Documentation ¶
Index ¶
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
}
HttpServer struct
func NewHttpServer ¶
func NewHttpServer(handler handler.BooksHandler) *HttpServer
NewHttpServer New Server constructor
func (*HttpServer) Run ¶
func (s *HttpServer) Run()
type Router ¶
type Router interface { GET(uri string, f func(resp http.ResponseWriter, r *http.Request)) POST(uri string, f func(resp http.ResponseWriter, r *http.Request)) PATCH(uri string, f func(resp http.ResponseWriter, r *http.Request)) DELETE(uri string, f func(resp http.ResponseWriter, r *http.Request)) Serve(port string) }
Click to show internal directories.
Click to hide internal directories.