 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComparePassword ¶
Types ¶
type User ¶
type User struct {
	UUID      string    `json:"uuid" xorm:"'uuid' pk"`
	Username  string    `json:"username" xorm:"unique"`
	Password  string    `json:"-"`
	CreatedAt time.Time `xorm:"created" json:"created_at"`
	UpdatedAt time.Time `xorm:"updated" json:"updated_at"`
}
    User db model
func NewEncryptedUser ¶
NewEncryptedUser Entity
type UserService ¶
type UserService struct {
	// contains filtered or unexported fields
}
    func NewUserService ¶
func NewUserService(connStr string) *UserService
func (*UserService) AuthUser ¶
func (us *UserService) AuthUser(username, password string) (b bool)
func (*UserService) SaveUser ¶
func (us *UserService) SaveUser(username, password string) (err error)
func (*UserService) UpdatePassword ¶
func (us *UserService) UpdatePassword(userName, oldPassword, newPassword string) (success bool)
 Click to show internal directories. 
   Click to hide internal directories.