connectionpool

package
v0.0.0-...-023f5f6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2020 License: MIT Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL