mailserver

package
v0.16.3-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2018 License: MPL-2.0 Imports: 17 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cleaner

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

Cleaner removes old messages from a db

func NewCleanerWithDB

func NewCleanerWithDB(db dbImpl) *Cleaner

NewCleanerWithDB returns a new Cleaner for db

func (*Cleaner) Prune

func (c *Cleaner) Prune(lower, upper uint32) (int, error)

Prune removes messages sent between lower and upper timestamps and returns how many has been removed

type DBKey

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

DBKey key to be stored on db.

func NewDbKey

func NewDbKey(t uint32, h common.Hash) *DBKey

NewDbKey creates a new DBKey with the given values.

type WMailServer

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

WMailServer whisper mailserver.

func (*WMailServer) Archive

func (s *WMailServer) Archive(env *whisper.Envelope)

Archive a whisper envelope.

func (*WMailServer) Close

func (s *WMailServer) Close()

Close the mailserver and its associated db connection.

func (*WMailServer) DeliverMail

func (s *WMailServer) DeliverMail(peer *whisper.Peer, request *whisper.Envelope)

DeliverMail sends mail to specified whisper peer.

func (*WMailServer) Init

func (s *WMailServer) Init(shh *whisper.Whisper, config *params.WhisperConfig) error

Init initializes mailServer.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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