Documentation ¶
Index ¶
Constants ¶
View Source
const ChannelBroadcast = "br"
View Source
const ChannelConversation = "c"
View Source
const ChannelP2P = "p"
Variables ¶
View Source
var DebugLogs = false
Functions ¶
func DeleteNode ¶
func DeleteNode(node string)
func IterateNodes ¶
IterateConnections iterates over all connections. If the callback returns false, the iteration stops.
func SetupCurrent ¶
func SetupSocketless ¶
func SetupSocketless(sl string)
Types ¶
type Channel ¶
type Channel struct { Channel string `json:"channel"` // Channel name Target []string `json:"target"` // User IDs to send to (node and user ID for p2p channel) Nodes []string `json:"-"` // Nodes to send to (only for conversation channel) }
func BroadcastChannel ¶
func Conversation ¶
func P2PChannel ¶
func (Channel) IsBroadcast ¶
func (Channel) IsConversation ¶
Click to show internal directories.
Click to hide internal directories.