Documentation
¶
Overview ¶
Package app implements the realy nostr relay with a simple follow/mute list authentication scheme and the new HTTP REST based protocol.
Index ¶
- func MonitorResources(c context.T)
- type List
- type Relay
- func (r *Relay) AcceptEvent(c context.T, evt *event.E, hr *http.Request, origin string, ...) (accept bool, notice string, afterSave func())
- func (r *Relay) AcceptFilter(c context.T, hr *http.Request, f *filter.S, authedPubkey []byte) (allowed *filter.S, ok bool, modified bool)
- func (r *Relay) AcceptReq(c context.T, hr *http.Request, id []byte, ff *filters.T, authedPubkey []byte) (allowed *filters.T, ok bool, modified bool)
- func (r *Relay) Init() (err error)
- func (r *Relay) Name() string
- func (r *Relay) Storage() store.I
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MonitorResources ¶
Types ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package config provides a go-simpler.org/env configuration table and helpers for working with the list of key/value lists stored in .env files.
|
Package config provides a go-simpler.org/env configuration table and helpers for working with the list of key/value lists stored in .env files. |
|
options
Package options provides some option configurations for the realy relay.
|
Package options provides some option configurations for the realy relay. |
|
publish
Package publisher is a singleton package that keeps track of subscriptions in both websockets and http SSE, including managing the authentication state of a connection.
|
Package publisher is a singleton package that keeps track of subscriptions in both websockets and http SSE, including managing the authentication state of a connection. |
Click to show internal directories.
Click to hide internal directories.