mailserver

package
v1.8.27 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package mailserver provides a naive, example mailserver implementation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBKey

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

func NewDbKey

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

NewDbKey is a helper function that creates a levelDB key from a hash and an integer.

type WMailServer

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

WMailServer represents the state data of the mailserver.

func (*WMailServer) Archive

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

Archive stores the

func (*WMailServer) Close

func (s *WMailServer) Close()

Close cleans up before shutdown.

func (*WMailServer) DeliverMail

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

DeliverMail responds with saved messages upon request by the messages' owner.

func (*WMailServer) Init

func (s *WMailServer) Init(shh *whisper.Whisper, path string, password string, pow float64) error

Init initializes the mail server.

Jump to

Keyboard shortcuts

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