Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { ID uint64 Email sql.NullString UserID string DisplayName sql.NullString Quota sql.NullString LastLogin int Backend string Home string State int8 Username sql.NullString // optional comes from the oc_preferences OwnCloudUUID sql.NullString // optional comes from the oc_preferences }
Account stores information about accounts.
type Accounts ¶
type Accounts struct {
// contains filtered or unexported fields
}
Accounts represents oc10-style Accounts
func New ¶
func New(driver string, sqldb *sql.DB, joinUsername, joinUUID, enableMedialSearch bool) (*Accounts, error)
New returns a new Cache instance connecting to the given sql.DB
func (*Accounts) FindAccounts ¶
FindAccounts searches userid, displayname and email using the given query. The Wildcard caracters % and _ are escaped.
func (*Accounts) GetAccountByClaim ¶
GetAccountByClaim fetches an account by mail, username or userid
Click to show internal directories.
Click to hide internal directories.