Documentation ¶
Index ¶
- Constants
- type Listener
- type Server
- func (s *Server) AuthFail(w http.ResponseWriter)
- func (s *Server) HTTPAuth(r *http.Request) (authed bo)
- func (s *Server) HandleAdmin(w http.ResponseWriter, r *http.Request)
- func (s *Server) HandleNIP11(w http.ResponseWriter, r *http.Request)
- func (s *Server) HandleWebsocket(w http.ResponseWriter, r *http.Request)
- func (s *Server) Router() *http.ServeMux
- func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (s *Server) Shutdown()
- func (s *Server) Start(host st, port int, started ...chan bo) er
- type ServerParams
Constants ¶
View Source
const ( ChallengeHRP = "nchal" ChallengeLength = 16 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
func (*Server) AuthFail ¶ added in v1.2.21
func (s *Server) AuthFail(w http.ResponseWriter)
func (*Server) HandleAdmin ¶ added in v1.0.16
func (s *Server) HandleAdmin(w http.ResponseWriter, r *http.Request)
func (*Server) HandleNIP11 ¶
func (s *Server) HandleNIP11(w http.ResponseWriter, r *http.Request)
func (*Server) HandleWebsocket ¶
func (s *Server) HandleWebsocket(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.