Documentation
¶
Index ¶
- Constants
- type LoginRequest
- type PrivateUser
- type PublicUser
- type User
- func (user *User) Delete() *rest_errors.RestErr
- func (user *User) FindByEmailAndPassword() *rest_errors.RestErr
- func (user *User) FindByStatus(status string) ([]User, *rest_errors.RestErr)
- func (user *User) Get() *rest_errors.RestErr
- func (user *User) Marshall(isPublic bool) interface{}
- func (user *User) Save() *rest_errors.RestErr
- func (user *User) Update() *rest_errors.RestErr
- func (user *User) Validate() *rest_errors.RestErr
- type Users
Constants ¶
View Source
const (
StatusActive = "active"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginRequest ¶
type PrivateUser ¶
type PublicUser ¶
type User ¶
type User struct { Id int64 `json:"id"` FirstName string `json:"first_name"` LastName string `json:"last_name"` Email string `json:"email"` DateCreated string `json:"date_created"` Status string `json:"status"` Password string `json:"password"` }
func (*User) Delete ¶
func (user *User) Delete() *rest_errors.RestErr
func (*User) FindByEmailAndPassword ¶
func (user *User) FindByEmailAndPassword() *rest_errors.RestErr
func (*User) FindByStatus ¶
func (user *User) FindByStatus(status string) ([]User, *rest_errors.RestErr)
func (*User) Get ¶
func (user *User) Get() *rest_errors.RestErr
func (*User) Save ¶
func (user *User) Save() *rest_errors.RestErr
func (*User) Update ¶
func (user *User) Update() *rest_errors.RestErr
func (*User) Validate ¶
func (user *User) Validate() *rest_errors.RestErr
Click to show internal directories.
Click to hide internal directories.