Documentation ¶
Index ¶
- func NewConnBag() *connBag
- type Server
- func (s *Server) AddListenerWrappers(listenerGens ...listenerGenerator)
- func (s *Server) ListenAndServeHTTP(addr string, readyCb func(addr string)) error
- func (s *Server) ListenAndServeHTTPS(addr, keyfile, certfile string, readyCb func(addr string)) error
- func (s *Server) Serve(listener net.Listener, readyCb func(addr string)) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConnBag ¶
func NewConnBag() *connBag
Types ¶
type Server ¶
type Server struct { // Allow is a function that determines whether or not to allow connections // from the given IP address. If unspecified, all connections are allowed. Allow func(string) bool // contains filtered or unexported fields }
Server is an HTTP proxy server.
func (*Server) AddListenerWrappers ¶
func (s *Server) AddListenerWrappers(listenerGens ...listenerGenerator)
func (*Server) ListenAndServeHTTP ¶
func (*Server) ListenAndServeHTTPS ¶
Click to show internal directories.
Click to hide internal directories.