multiserver

package module
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: MIT Imports: 10 Imported by: 3

Documentation

Overview

first draft of an (surely) incomlete implemenation of multiserver addresses

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoNetAddr = errors.New("multiserver: no net~shs combination")
	ErrNoSHSKey  = errors.New("multiserver: no or invalid shs1 key")
)
View Source
var (
	ErrNoTunnelAddr = errors.New("multiserver: not a tunnel address")
)

Functions

This section is empty.

Types

type NetAddress

type NetAddress struct {
	Addr net.TCPAddr
	Ref  refs.FeedRef
}

func ParseNetAddress

func ParseNetAddress(input []byte) (*NetAddress, error)

func (NetAddress) String

func (na NetAddress) String() string

func (NetAddress) WrappedAddr

func (na NetAddress) WrappedAddr() net.Addr

WrappedAddr returns a netwrap'ed address that can be dialed easily using secretstream

type TunnelAddress

type TunnelAddress struct {
	Intermediary refs.FeedRef
	Target       refs.FeedRef
}

func ParseTunnelAddress

func ParseTunnelAddress(input string) (*TunnelAddress, error)

func (TunnelAddress) String

func (ta TunnelAddress) String() string

Jump to

Keyboard shortcuts

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