server

package
v0.0.0-...-36b3fdc Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartPeerServer

func StartPeerServer()

StartPeerServer creates an HTTP server that replies with known peers

func StartServer

func StartServer(port string)

StartServer start server

func TraverseNat

func TraverseNat(port uint16) (string, error)

TraverseNat opens the port passed as an arguemnt and returns ip:port in a string. Required manaually closing port

Types

type ConnectionStore

type ConnectionStore struct {
	// contains filtered or unexported fields
}

ConnectionStore handles peer messaging

type UserServer

type UserServer struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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