Documentation ¶
Index ¶
- type UserIndex
- func (ui UserIndex) CompletionSuggestions(query string) ([]core.User, error)
- func (ui UserIndex) Deindex(u core.User) error
- func (ui UserIndex) EmailExists(email string) (bool, error)
- func (ui UserIndex) FromEmail(email string) (core.User, error)
- func (ui UserIndex) Index(u core.User) error
- func (ui UserIndex) Reindex() error
- func (ui UserIndex) VerifiedEmailExists(email string) (bool, error)
- func (ui UserIndex) WithEmail(email string) ([]core.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserIndex ¶
type UserIndex struct {
// contains filtered or unexported fields
}
func NewUserIndex ¶
NewUserIndex returns a new *UserIndex based upon the database and data directory given. Indexes will be stored at: {dataDir}/indexes/user
func (UserIndex) CompletionSuggestions ¶
CompletionSuggestions returns user suggestions starting with the query string or the query string with an ampersand in front.
func (UserIndex) EmailExists ¶ added in v0.3.0
EmailExists returns whether a user with an email exists, regardless of whether the existing user has verified that email.
func (UserIndex) FromEmail ¶ added in v0.3.0
FromEmail returns the one verified user with this email or else a KeyNotFoundErr
func (UserIndex) VerifiedEmailExists ¶ added in v0.3.0
VerifiedEmailExists returns whether a user with an email exists if this existing user has also verified that email.
Click to show internal directories.
Click to hide internal directories.