client

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: AGPL-3.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SpoolReadDescriptor added in v0.0.2

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 added in v0.0.2

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 added in v0.0.2

func (r *SpoolReadDescriptor) GetWriteDescriptor() *SpoolWriteDescriptor

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

func (*SpoolReadDescriptor) IncrementOffset added in v0.0.2

func (r *SpoolReadDescriptor) IncrementOffset()

IncrementOffset increments the ReadOffset

type SpoolWriteDescriptor added in v0.0.2

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.

Jump to

Keyboard shortcuts

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