server: github.com/katzenpost/server/spool Index | Files | Directories

package spool

import "github.com/katzenpost/server/spool"

Package spool defines the Katzenpost server user message spool abstract interface.

Index

Package Files

spool.go

type Spool Uses

type Spool interface {
    // StoreMessage stores a message in the user's spool.
    StoreMessage(u, msg []byte) error

    // StoreSURBReply stores a SURBReply in the user's spool.
    StoreSURBReply(u []byte, id *[constants.SURBIDLength]byte, msg []byte) error

    // Get optionally deletes the first entry in a user's spool, and returns
    // the (new) first entry.  Both messages and SURBReplies may be returned.
    Get(u []byte, advance bool) (msg, surbID []byte, remaining int, err error)

    // Remove removes the spool identified by the username from the database.
    Remove(u []byte) error

    // Vaccum removes the spools that do not correspond to valid users in the
    // provided UserDB.
    Vaccum(udb userdb.UserDB) error

    // Close closes the Spool instance.
    Close()
}

Spool is the interface provided by all user messgage spool implementations.

Directories

PathSynopsis
boltspoolPackage boltspool implements the Katzenpost server user message spool with a simple boltdb based backend.

Package spool imports 2 packages (graph) and is imported by 4 packages. Updated 2018-02-24. Refresh now. Tools for package owners.