StarBridge

package module
v2.2.22 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 9 Imported by: 0

README

Overview of Replicant for Go

(This is still in an unstable state! It is not suitable for production deployment.)

Replicant is still in progress. more information will appear as development furthers.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientConnection

func NewClientConnection(conn net.Conn) (*replicant.Connection, error)

func NewReplicantClientConnectionState

func NewReplicantClientConnectionState() (*replicant.ConnectionState, error)

func NewReplicantServerConnectionState

func NewReplicantServerConnectionState(polishServer polish.Server, conn net.Conn) (*replicant.ConnectionState, error)

func NewServerConnection

func NewServerConnection(conn net.Conn) (*replicant.Connection, error)

Types

type ClientConfig added in v2.2.13

type ClientConfig struct {
	Address string `json:"serverAddress"`
}

func (ClientConfig) Dial added in v2.2.14

func (config ClientConfig) Dial(address string) (net.Conn, error)

Dial connects to the address on the named network

type ServerConfig added in v2.2.13

type ServerConfig struct {
}

func (ServerConfig) Listen added in v2.2.14

func (config ServerConfig) Listen(address string) net.Listener

Listen checks for a working connection

type Transport added in v2.2.13

type Transport struct {
	Config  ClientConfig
	Address string
	Dialer  proxy.Dialer
}

func (*Transport) Dial added in v2.2.14

func (transport *Transport) Dial() (net.Conn, error)

Dial creates outgoing transport connection

Jump to

Keyboard shortcuts

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