turn

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Realm = "screego"

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

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

type Generator added in v1.1.0

type Generator struct {
	turn.RelayAddressGenerator
	// contains filtered or unexported fields
}

func (*Generator) AllocatePacketConn added in v1.1.0

func (r *Generator) AllocatePacketConn(network string, requestedPort int) (net.PacketConn, net.Addr, error)

type RelayAddressGeneratorNone added in v1.1.0

type RelayAddressGeneratorNone struct{}

func (*RelayAddressGeneratorNone) AllocateConn added in v1.1.0

func (r *RelayAddressGeneratorNone) AllocateConn(network string, requestedPort int) (net.Conn, net.Addr, error)

func (*RelayAddressGeneratorNone) AllocatePacketConn added in v1.1.0

func (r *RelayAddressGeneratorNone) AllocatePacketConn(network string, requestedPort int) (net.PacketConn, net.Addr, error)

func (*RelayAddressGeneratorNone) Validate added in v1.1.0

func (r *RelayAddressGeneratorNone) Validate() error

type RelayAddressGeneratorPortRange added in v1.1.0

type RelayAddressGeneratorPortRange struct {
	MinPort uint16
	MaxPort uint16
	Rand    randutil.MathRandomGenerator
}

func (*RelayAddressGeneratorPortRange) AllocateConn added in v1.1.0

func (r *RelayAddressGeneratorPortRange) AllocateConn(network string, requestedPort int) (net.Conn, net.Addr, error)

func (*RelayAddressGeneratorPortRange) AllocatePacketConn added in v1.1.0

func (r *RelayAddressGeneratorPortRange) AllocatePacketConn(network string, requestedPort int) (net.PacketConn, net.Addr, error)

func (*RelayAddressGeneratorPortRange) Validate added in v1.1.0

func (r *RelayAddressGeneratorPortRange) Validate() error

type Server

type Server struct {
	Port string
	// contains filtered or unexported fields
}

func Start

func Start(conf config.Config) (*Server, error)

func (*Server) Allow

func (a *Server) Allow(username, password string, addr net.IP)

func (*Server) Disallow

func (a *Server) Disallow(username string)

Jump to

Keyboard shortcuts

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