README ¶ Nostr Relay Framework -- use it to implement your own custom relay. There is an example/reference implementation at basic. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type Server func NewServer(sp ServerParams, opts ...options.O) (*Server, er) 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 ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Server ¶ type Server struct { Ctx cx Cancel context.F Addr st // contains filtered or unexported fields } func NewServer ¶ func NewServer(sp ServerParams, opts ...options.O) (*Server, er) func (*Server) Router ¶ func (s *Server) Router() *http.ServeMux func (*Server) ServeHTTP ¶ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) func (*Server) Shutdown ¶ func (s *Server) Shutdown() func (*Server) Start ¶ func (s *Server) Start(host st, port int, started ...chan bo) er type ServerParams ¶ added in v1.2.19 type ServerParams struct { Ctx cx Cancel context.F Rl relay.I DbPath st MaxLimit no AdminUser, AdminPass st } Source Files ¶ View all Source files addEvent.go handleAdmin.go handleAuth.go handleClose.go handleCount.go handleEvent.go handleReq.go handleWebsocket.go relayinfo.go server.go util.go version.go Directories ¶ Show internal Expand all Path Synopsis config listeners Package listeners is a singleton package that keeps track of nostr websockets Package listeners is a singleton package that keeps track of nostr websockets options Click to show internal directories. Click to hide internal directories.