Documentation
¶
Overview ¶
Package simplelogintest is a fake SimpleLogin API for tests: a user with mailboxes, aliases and contacts, served over HTTP on loopback.
Index ¶
Constants ¶
const ReverseDomain = "rev.sl.example"
ReverseDomain is the domain the fake's reverse aliases are at.
Variables ¶
This section is empty.
Functions ¶
func ReverseAlias ¶
ReverseAlias is the reverse alias the fake gives contact addr of an alias.
Types ¶
type Server ¶
Server is a fake SimpleLogin instance with one user, whose API key is Key. A contact whose address starts with "premium" is refused, as SimpleLogin refuses reverse aliases to a free plan.
func Start ¶
Start serves a fake with key and mailboxes (the first the default, each verified) and no alias.
func (*Server) AddAlias ¶
AddAlias gives the user an alias forwarding to the mailboxes (addresses) and returns its id. Its latest activity is a forward from a contact whose reverse alias is at ReverseDomain, as SimpleLogin reports one.