client

package
v0.0.0-...-001208e Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(ctx context.Context, cancel context.CancelFunc, connType ConnectionType, crypter interfaces.Asymmetric) *Client

func (*Client) Close

func (c *Client) Close()

func (*Client) ListenUserInput

func (c *Client) ListenUserInput()

func (*Client) RunClient

func (c *Client) RunClient(key, password string) error

func (*Client) RunServer

func (c *Client) RunServer(session string) error

type ConnectionType

type ConnectionType int
const (
	Local ConnectionType = iota
	Tor
)

type Connector

type Connector interface {
	RunServer(address string, onionPrivKey []byte) (net.Listener, error)
	RunClient(address string) (net.Conn, error)
}

can be local or tor

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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