Documentation ¶
Index ¶
- Constants
- func New(config *ServerConfig) lib.Server
- func NewProxyClient(host string) *http.Client
- type Server
- func (s *Server) CacheAvailable() bool
- func (s *Server) Close() error
- func (s *Server) Listener() net.Listener
- func (s *Server) Open(addr string) (net.Listener, error)
- func (s *Server) Running() bool
- func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request)
- func (s *Server) ServeHTTPUnsafe(w http.ResponseWriter, req *http.Request)
- func (s *Server) WaitGroup() *sync.WaitGroup
- func (s *Server) WebAvailable() bool
- type ServerConfig
Constants ¶
View Source
const (
DefaultHeartbeatTime = time.Minute
)
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(config *ServerConfig) lib.Server
func NewProxyClient ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) CacheAvailable ¶
func (*Server) ServeHTTPUnsafe ¶
func (s *Server) ServeHTTPUnsafe(w http.ResponseWriter, req *http.Request)
func (*Server) WebAvailable ¶
Click to show internal directories.
Click to hide internal directories.