memspool: github.com/katzenpost/memspool/client Index | Files

package client

import "github.com/katzenpost/memspool/client"

Index

Package Files

client.go

type SpoolReadDescriptor Uses

type SpoolReadDescriptor struct {
    // PrivateKey is the key material required for reading the described spool.
    PrivateKey *eddsa.PrivateKey

    // ID is the identity of the described spool.
    ID  [common.SpoolIDSize]byte

    // Receiver is the responding service name of the SURB based spool service.
    Receiver string

    // Provider is the name of the Provider hosting the spool.
    Provider string

    // ReadOffset is the number of messages to offset the next read from this
    // described spool.
    ReadOffset uint32
}

SpoolReadDescriptor describes a remotely readable spool.

func NewSpoolReadDescriptor Uses

func NewSpoolReadDescriptor(receiver, provider string, session *client.Session) (*SpoolReadDescriptor, error)

NewSpoolReadDescriptor blocks until the remote spool is created or the round trip timeout is reached.

func (*SpoolReadDescriptor) GetWriteDescriptor Uses

func (r *SpoolReadDescriptor) GetWriteDescriptor() *SpoolWriteDescriptor

GetWriteDescriptor returns a SpoolWriteDescriptor which can used write to the given spool.

func (*SpoolReadDescriptor) IncrementOffset Uses

func (r *SpoolReadDescriptor) IncrementOffset()

IncrementOffset increments the ReadOffset

type SpoolWriteDescriptor Uses

type SpoolWriteDescriptor struct {
    // ID is the identity of the described spool.
    ID  [common.SpoolIDSize]byte

    // Receiver is the responding service name of the SURB based spool service.
    Receiver string

    // Provider is the name of the Provider hosting the spool.
    Provider string
}

SpoolWriteDescriptor describes a remotely writable spool.

Package client imports 4 packages (graph) and is imported by 3 packages. Updated 2019-11-16. Refresh now. Tools for package owners.