server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	ID peer.ID
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, addr string, port uint16, forward ServerForward) *Server

func (*Server) ListenAndSync

func (s *Server) ListenAndSync()

type ServerForward

type ServerForward struct {
	Addr string
	Port uint16
}

Jump to

Keyboard shortcuts

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