Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UserAgent string = "bostr2 (https://codeberg.org/Yonle/bostr2) - nostr relay proxy aggregator"
Functions ¶
This section is empty.
Types ¶
type MessageChan ¶
type MessageChan chan []json.RawMessage
type RelaySession ¶
type RelaySession struct {
UpEVENT MessageChan
UpEOSE MessageChan
UpConnected chan *websocket.Conn
HowManyRelaysAreConnected int
// contains filtered or unexported fields
}
func NewSession ¶
func NewSession(ctx context.Context, ip string) RelaySession
func (*RelaySession) Broadcast ¶
func (s *RelaySession) Broadcast(data []json.RawMessage)
func (*RelaySession) Init ¶
func (s *RelaySession) Init(r []string)
func (*RelaySession) Wait ¶
func (s *RelaySession) Wait()
type SessionRelays ¶
Click to show internal directories.
Click to hide internal directories.