mailserver

package
v0.0.0-...-f8b7a73 Latest Latest
Warning

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

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

Documentation

Overview

包mailserver提供了一个简单的示例mailserver实现

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是一个帮助函数,它创建一个leveldb 来自哈希和整数的键。

type WMailServer

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

wmailserver表示邮件服务器的状态数据。

func (*WMailServer) Archive

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

存档存储

func (*WMailServer) Close

func (s *WMailServer) Close()

关闭前清理。

func (*WMailServer) DeliverMail

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

Delivermail根据 邮件的所有者。

func (*WMailServer) Init

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

init初始化邮件服务器。

Jump to

Keyboard shortcuts

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