client

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

README

Bismuth Client

This is a wrapper around connections which lets you speak the Bismuth protocol.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BismuthClient

type BismuthClient struct {
	// GOpenPGP public key
	PublicKey *crypto.Key
	// GOpenPGP private key
	PrivateKey *crypto.Key
	// contains filtered or unexported fields
}

Bismuth Client

func New

func New(pubKey string, privKey string) (*BismuthClient, error)

Creates a new BismuthClient.

Both `pubKey` and `privKey` are armored PGP public and private keys respectively.

func (BismuthClient) Conn

func (bismuth BismuthClient) Conn(conn net.Conn) (net.Conn, error)

Connects to a Bismuth server. This wraps an existing net.Conn interface. The returned net.Conn is the server, but over bismuth.

Jump to

Keyboard shortcuts

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