server: Add Handler field and remove Handle methods

This commit is contained in:
Adnan Maolood 2021-02-17 20:30:59 -05:00
parent f3cd70612b
commit 6edde376c4

View File

@ -23,6 +23,9 @@ type Server struct {
// See net.Dial for details of the address format. // See net.Dial for details of the address format.
Addr string Addr string
// The Handler to invoke.
Handler Handler
// ReadTimeout is the maximum duration for reading the entire // ReadTimeout is the maximum duration for reading the entire
// request. // request.
// //