client

package
v0.0.0-...-56464ea Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2020 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BMailClient

type BMailClient struct {
	Wallet  bmail.Wallet
	SrvIP   net.IP
	SrvBcas map[bmail.Address]bool
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cc *ClientConf) (*BMailClient, error)

func (*BMailClient) Close

func (bmc *BMailClient) Close()

func (*BMailClient) HandShake

func (bmc *BMailClient) HandShake(conn *bmp.BMailConn) (*bmp.HELOACK, error)

func (*BMailClient) ReceiveEnv

func (bmc *BMailClient) ReceiveEnv(timeSince1970 int64, olderThanSince bool, maxCount int) ([]*bmp.BMailEnvelope, error)

func (*BMailClient) SendMail

func (bmc *BMailClient) SendMail(bme *bmp.BMailEnvelope) error

type ClientConf

type ClientConf struct {
	Resolver resolver.NameResolver
	Wallet   bmail.Wallet
}

Jump to

Keyboard shortcuts

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