Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandleOptions ¶
type HandleOptions struct {
Addr, Username, Password, FromAddr string
}
HandleOptions is used to construct a new HandleService using the NewHandleService function.
type HandleService ¶
HandleService implements the HandleService interface. Handles are interperted as email addresses.
func NewHandleService ¶
func NewHandleService(opt *HandleOptions) (*HandleService, error)
NewHandleService returns a new HandleService instance with the given options.
func (*HandleService) Listed ¶
func (s *HandleService) Listed(handle string) bool
Listed return true when the given address is listed.
func (*HandleService) Notify ¶
func (s *HandleService) Notify(handle, loginurl string) error
Notify returns nil when the given login URL is succesfully sent to the given email address.
func (*HandleService) Register ¶
func (s *HandleService) Register(handle string) error
Register returns nil when the given address is valid.
Click to show internal directories.
Click to hide internal directories.