Documentation ¶
Index ¶
- type AuthTable
- func (t *AuthTable) AltLoginItem() string
- func (t *AuthTable) ChangeUserPassword(userName string, password string, newPassword string) helpers.Error
- func (t *AuthTable) Close(save bool)
- func (t *AuthTable) Delete() helpers.Error
- func (t *AuthTable) DeleteUser(userName string, password string) helpers.Error
- func (t *AuthTable) EncryptCost() int
- func (t *AuthTable) Get(userName string, password string) (*authTableEntry, int)
- func (t *AuthTable) GetUser(userName string, password string, items map[string]interface{}) (map[string]interface{}, helpers.Error)
- func (t *AuthTable) NewUser(name string, password string, insertObj map[string]interface{}) (*authTableEntry, helpers.Error)
- func (t *AuthTable) ResetUserPassword(userName string) helpers.Error
- func (t *AuthTable) SetAltLoginItem(item string) int
- func (t *AuthTable) SetEmailItem(item string) int
- func (t *AuthTable) SetEmailSettings(settings EmailSettings) int
- func (t *AuthTable) SetEncryptionCost(cost int) int
- func (t *AuthTable) SetMaxEntries(max uint64) int
- func (t *AuthTable) SetMinPasswordLength(min uint8) int
- func (t *AuthTable) SetPartitionMax(max uint16) int
- func (t *AuthTable) SetPasswordResetLength(len uint8) int
- func (t *AuthTable) SetVerifyItem(item string) int
- func (t *AuthTable) Size() int
- func (t *AuthTable) UpdateUser(userName string, password string, updateObj map[string]interface{}) helpers.Error
- type EmailSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthTable ¶
type AuthTable struct {
// contains filtered or unexported fields
}
Authtable
func New ¶
func New(name string, configFile *os.File, s schema.Schema, fileOn uint16, dataOnDrive bool, memOnly bool) (*AuthTable, helpers.Error)
New creates a new AuthTable with the provided name, schema, and other parameters.
func (*AuthTable) AltLoginItem ¶
func (*AuthTable) ChangeUserPassword ¶
func (t *AuthTable) ChangeUserPassword(userName string, password string, newPassword string) helpers.Error
ChangeUserPassword
func (*AuthTable) DeleteUser ¶
DeleteUser
func (*AuthTable) EncryptCost ¶
func (*AuthTable) GetUser ¶
func (t *AuthTable) GetUser(userName string, password string, items map[string]interface{}) (map[string]interface{}, helpers.Error)
GetUserData
func (*AuthTable) NewUser ¶
func (t *AuthTable) NewUser(name string, password string, insertObj map[string]interface{}) (*authTableEntry, helpers.Error)
NewUser creates a new authTableEntry in the AuthTable
func (*AuthTable) ResetUserPassword ¶
ResetPassword
func (*AuthTable) SetAltLoginItem ¶
SetAltLoginItem sets the AuthTable's alternative login item. Item must be a string and unique.
func (*AuthTable) SetEmailItem ¶
SetAltLoginItem sets the AuthTable's email item. Item must be a string and unique.
func (*AuthTable) SetEmailSettings ¶
func (t *AuthTable) SetEmailSettings(settings EmailSettings) int
SetVerifyItem sets the AuthTable's email verification item. Item must be a string.
func (*AuthTable) SetEncryptionCost ¶
func (*AuthTable) SetMaxEntries ¶
func (*AuthTable) SetMinPasswordLength ¶
func (*AuthTable) SetPartitionMax ¶
func (*AuthTable) SetPasswordResetLength ¶
func (*AuthTable) SetVerifyItem ¶
SetVerifyItem sets the AuthTable's email verification item. Item must be a string.
type EmailSettings ¶
type EmailSettings struct { AuthType string // "CRAMMD5" or "Plain" AuthName string // username AuthPass string // password AuthID string // identity (for Plain) AuthHost string // host (for Plain) VerifyFrom string // Verification email sender VerifySubj string // Verification email subject VerifyBody string // Verification email body // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.