go-ethereum: github.com/ethereum/go-ethereum/whisper/mailserver Index | Files

package mailserver

import "github.com/ethereum/go-ethereum/whisper/mailserver"

Package mailserver provides a naive, example mailserver implementation

Index

Package Files

mailserver.go

type DBKey Uses

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

func NewDbKey Uses

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 Uses

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

WMailServer represents the state data of the mailserver.

func (*WMailServer) Archive Uses

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

Archive stores the

func (*WMailServer) Close Uses

func (s *WMailServer) Close()

Close cleans up before shutdown.

func (*WMailServer) DeliverMail Uses

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

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

func (*WMailServer) Init Uses

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

Init initializes the mail server.

Package mailserver imports 11 packages (graph) and is imported by 4 packages. Updated 2020-04-23. Refresh now. Tools for package owners.