Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OutgoingMessages = make(chan DataMessage) // msgs to be broadcasted IncomingMessages = make(chan IncomingMessage) // msgs recieved from other hosts )
Global Channels
Functions ¶
func StartConnectionPool ¶
func StartConnectionPool()
Sets everything up -- reads certs, starts the broadcaster channel, tries to dial other clients to generate mTLS connections, and then starts a listening server that will create connections when other clients ring this one
Types ¶
type DataMessage ¶
type DataMessage struct {
Message []byte
}
type IncomingMessage ¶
type IncomingMessage struct { Client string Data DataMessage }
What we pass back to clients
Click to show internal directories.
Click to hide internal directories.