realy

package
v1.2.37 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2024 License: Unlicense Imports: 48 Imported by: 0

README

Nostr Relay Framework -- use it to implement your own custom relay.

There is an example/reference implementation at basic.

GoDoc

Documentation

Index

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
}

Directories

Path Synopsis
Package listeners is a singleton package that keeps track of nostr websockets
Package listeners is a singleton package that keeps track of nostr websockets

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL