core

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LdapConn

type LdapConn interface {
	Add(*ldap.AddRequest) error
	Modify(*ldap.ModifyRequest) error
	Search(*ldap.SearchRequest) (*ldap.SearchResult, error)
	Close()
}

type LdapDialer

type LdapDialer interface {
	Dial(context.Context) (LdapWrap, error)
}

type LdapWrap

type LdapWrap interface {
	RegisterMember(user, email, mlEmail string) (token string, err error)
	SetPassword(token, password, doorpass string) error
	MemberExists(uid string) (exists bool, err error)
	PasswordReset(nickname string) (token, email string, err error)
}

type Mailer

type Mailer interface {
	SendPassword(to, nickname, token string) error
}

type SmtpConn

type SmtpConn interface {
	Data() (io.WriteCloser, error)
	Mail(string) error
	Rcpt(string) error
	StartTLS(*tls.Config) error
	Close() error
}

Jump to

Keyboard shortcuts

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