bindings: Index | Files

package katzenpost

import ""


Package Files

client.go config.go key.go

type Client Uses

type Client struct {
    // contains filtered or unexported fields

Client is katzenpost object

func New Uses

func New(cfg Config) (Client, error)

New creates a katzenpost client

func (Client) GetMessage Uses

func (c Client) GetMessage(timeout int64) (Message, error)

GetMessage from katzenpost

func (Client) ListProviders Uses

func (c Client) ListProviders() ([]string, error)

ListProviders returns the provider list

func (Client) Send Uses

func (c Client) Send(recipient, msg string) error

Send a message into katzenpost

func (Client) Shutdown Uses

func (c Client) Shutdown()

Shutdown the client

func (Client) WaitToConnect Uses

func (c Client) WaitToConnect() error

WaitToConnect wait's to be connected

type Config Uses

type Config struct {
    PkiAddress  string
    PkiKey      string
    User        string
    Provider    string
    IdentityKey Key
    LinkKey     Key
    Log         LogConfig
    DataDir     string

Config has the client configuration

type Key Uses

type Key struct {
    Private string
    Public  string
    // contains filtered or unexported fields

Key keeps the key public and private data

func GenKey Uses

func GenKey() (Key, error)

GenKey creates a new ecdh key

func StringToKey Uses

func StringToKey(keyStr string) (Key, error)

StringToKey builds a Key from a string

type LogConfig Uses

type LogConfig struct {
    File    string
    Level   string
    Enabled bool

LogConfig keeps the configuration of the loger

type Message Uses

type Message struct {
    Sender  string
    Payload string

Message received from katzenpost

type TimeoutError Uses

type TimeoutError struct{}

TimeoutError is returned on timeouts

func (TimeoutError) Error Uses

func (t TimeoutError) Error() string

Package katzenpost imports 17 packages (graph). Updated 2018-07-31. Refresh now. Tools for package owners.