Versions in this module Expand all Collapse all v0 v0.1.0 Jun 23, 2023 Changes in this version + type HTTPRequest struct + Body string + Headers map[string]string + HeadersHash string + Method string + ResponseId string + Timestamp time.Time + URL string + type HTTPResponse struct + Body string + Cacheable bool + Headers map[string]string + Latency time.Duration + ResponseId string + Status int + StatusCode int + Timestamp time.Time + type Registration struct + Domain string + Key string + Name string + Routes []Route + type Route struct + Conn *websocket.Conn + Domain string + Handler http.HandlerFunc + IPorHost string + Name string + Path string + Pattern *regexp.Regexp + Port int + RegExp string + Status Status + type Server struct + func NewServer() *Server + func (s *Server) HandleFunc(path string, handler http.HandlerFunc) + func (s *Server) ListenAndServe(addr string) error + func (s *Server) ListenAndServeWithAutoReconnect(addr string) error + type Status struct + AvgLatency time.Duration + Connected bool + LastRequest time.Time + LastResponse time.Time + Online bool