Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ListenAddr string TLSListenAddr string TLSOnly bool TLS *TLSConfig Verbose bool BackendFile string CacheDir string ProxyTarget string CacheExpiration time.Duration CacheCleanupInterval time.Duration }
Config represents a server config
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents a server instance
func (*Server) ListenAndServe ¶
func (s *Server) ListenAndServe()
ListenAndServe listens for new requests and serves them
Click to show internal directories.
Click to hide internal directories.