registration_client: github.com/katzenpost/registration_client Index | Files | Directories

package client

import "github.com/katzenpost/registration_client"

Package client provides a library for registering Katzenpost clients with a specific mixnet Provider.

Index

Package Files

client.go

type Client Uses

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

Client handles mixnet Provider account registration.

func New Uses

func New(address string, options *Options) (*Client, error)

New creates a new Client with the provided configuration.

func (*Client) RegisterAccountWithIdentityAndLinkKey Uses

func (c *Client) RegisterAccountWithIdentityAndLinkKey(user string, linkKey *ecdh.PublicKey, identityKey *ecdh.PublicKey) error

func (*Client) RegisterAccountWithLinkKey Uses

func (c *Client) RegisterAccountWithLinkKey(user string, linkKey *ecdh.PublicKey) error

type Options Uses

type Options struct {
    // Scheme selects the HTTP scheme
    // which is either HTTP or HTTPS
    Scheme string

    // UseSocks is set to true if the specified
    // SOCKS proxy is to be used for dialing.
    UseSocks bool

    // SocksNetwork is the network that the
    // optional SOCKS port is listening on
    // which is usually "unix" or "tcp".
    SocksNetwork string

    // SocksAddress is the address of the SOCKS port.
    SocksAddress string
}

Options are optional parameters to configure the registration client. Default values are used when a nil Options pointer is passed to New.

Directories

PathSynopsis
mailproxyPackage mailproxy provides a library for generating mailproxy configuration and key material.

Package client imports 6 packages (graph) and is imported by 3 packages. Updated 2019-01-22. Refresh now. Tools for package owners.