mailserver

package
v2.0.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: GPL-3.0 Imports: 10 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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