Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/barkyq/gnost-relay
/ functions
Functions
29 in github.com/barkyq/gnost-relay
⨍
Functions
29
◇
Types & classes
11
↓ 11 callers
Method
Done
Done() must be called after calling Settings() or NIP11()
config.go:40
↓ 8 callers
Function
fastjsonArrayToStringList
fastjson helpers
helpers.go:492
↓ 5 callers
Method
Parse
(nip11_document_bytes []byte)
nip11.go:14
↓ 4 callers
Method
Settings
()
config.go:32
↓ 3 callers
Method
Error
()
nip11.go:76
↓ 3 callers
Method
Release
()
helpers.go:44
↓ 3 callers
Method
store_event
unexported. more efficient by reusing memory allocations
storage.go:25
↓ 2 callers
Method
Accept
Match returns true if the q filter accepts the p DBNotification.
helpers.go:392
↓ 2 callers
Method
Release
()
helpers.go:54
↓ 2 callers
Method
parseSettings
(filename string)
config.go:100
↓ 1 callers
Method
Cull
(pf_buf []ParsedFilter)
helpers.go:85
↓ 1 callers
Function
EventSubmissionHandler
(event_chan chan EventSubmission, dbpool *pgxpool.Pool, logger *log.Logger, c *Config)
main.go:484
↓ 1 callers
Function
InitConfig
Config Hot Reloading
config.go:45
↓ 1 callers
Function
InitStorage
()
storage.go:82
↓ 1 callers
Method
NIP11
()
config.go:35
↓ 1 callers
Function
NIP11_EscapeHatch
(encoding []byte)
nip11.go:51
↓ 1 callers
Function
ReqSubmissionHandler
(req_chan chan ReqSubmission, close_chan chan CloseSubmission, dbpool *pgxpool.Pool, logger *log.Logger)
main.go:544
↓ 1 callers
Function
SQL
(filters []ParsedFilter, string_buf_pool *sync.Pool, any_buf_pool *sync.Pool, max_limit int)
helpers.go:58
↓ 1 callers
Method
UnmarshalJSON
(payload []byte)
config.go:135
↓ 1 callers
Function
fastjsonArrayToIntList
(v *fastjson.Value)
helpers.go:510
↓ 1 callers
Function
handle_websocket
(cancel context.CancelFunc, wg *sync.WaitGroup, handshake *ws.Handshake, bytes_buf_pool, flate_reader_pool, fl
websocket.go:27
↓ 1 callers
Method
sql
(params []any, string_buf_pool *sync.Pool)
helpers.go:101
Method
Escape
()
nip11.go:80
Method
StoreEvent
(dbconn *pgxpool.Conn)
storage.go:17
Method
UnmarshalJSON
(payload []byte)
helpers.go:237
Method
UnmarshalJSON
(payload []byte)
helpers.go:324
Function
gen_sql_dollar_quote
to prevent SQL injections, use $tag$ string $tag$ construction, with random tag
helpers.go:528
Function
main
()
main.go:59
Function
negotiate
var ws_upgrade_params = wsflate.Parameters{ ServerNoContextTakeover: false, // default: server can reuse LZ77 buffer ClientNoContextTakeover: false,
websocket.go:270