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

package client

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

Index

Package Files

client.go

Constants

const (
    OKStatus         = "OK"
    SpoolServiceName = "spool"
)

type SpoolService Uses

type SpoolService interface {
    CreateSpool(privateKey *eddsa.PrivateKey, spoolReceiver string, spoolProvider string) ([]byte, error)
    ReadFromSpool(spoolID []byte, count uint32, privateKey *eddsa.PrivateKey, spoolReceiver string, spoolProvider string) (*common.SpoolResponse, error)
    AppendToSpool(spoolID []byte, message []byte, spoolReceiver string, spoolProvider string) error
    PurgeSpool(spoolID []byte, privKey *eddsa.PrivateKey, recipient, provider string) error
}

type UnreliableSpoolService Uses

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

func New Uses

func New(session *session.Session) *UnreliableSpoolService

func (*UnreliableSpoolService) AppendToSpool Uses

func (s *UnreliableSpoolService) AppendToSpool(spoolID []byte, message []byte, recipient, provider string) error

func (*UnreliableSpoolService) CreateSpool Uses

func (s *UnreliableSpoolService) CreateSpool(privKey *eddsa.PrivateKey, recipient, provider string) ([]byte, error)

func (*UnreliableSpoolService) PurgeSpool Uses

func (s *UnreliableSpoolService) PurgeSpool(spoolID []byte, privKey *eddsa.PrivateKey, recipient, provider string) error

func (*UnreliableSpoolService) ReadFromSpool Uses

func (s *UnreliableSpoolService) ReadFromSpool(spoolID []byte, messageID uint32,
    privKey *eddsa.PrivateKey,
    recipient,
    provider string) (*common.SpoolResponse, error)

Package client imports 6 packages (graph) and is imported by 2 packages. Updated 2019-04-18. Refresh now. Tools for package owners.