Documentation ¶
Index ¶
- func Port(port int) func(*Httpd) error
- type Httpd
- func (h *Httpd) Handle(route string, handler http.Handler)
- func (h *Httpd) HandleFunc(newroute string, handler func(http.ResponseWriter, *http.Request))
- func (h *Httpd) HandleSignal(q chan os.Signal)
- func (h *Httpd) ListenAndServe(address ...string) error
- func (h *Httpd) ServeHTTP(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Httpd ¶
type Httpd struct { Address string // contains filtered or unexported fields }
Httpd main struct
func (*Httpd) HandleFunc ¶
HandleFunc adds a route to the map of handlers
func (*Httpd) HandleSignal ¶
func (*Httpd) ListenAndServe ¶
ListenAndServe starts Httpd listening on the defined address
Click to show internal directories.
Click to hide internal directories.