Documentation ¶
Index ¶
- Constants
- type PrivateUser
- type PublicUser
- type User
- func (user *User) Delete() *errors_utils.RestError
- func (user *User) FindByStatus(status string) ([]User, *errors_utils.RestError)
- func (user *User) Get() *errors_utils.RestError
- func (user *User) GetAll() ([]User, *errors_utils.RestError)
- func (user *User) Marshall(isPublic bool) interface{}
- func (user *User) Save() *errors_utils.RestError
- func (user *User) Update() *errors_utils.RestError
- func (user *User) Validate() *errors_utils.RestError
- type Users
Constants ¶
View Source
const (
StatusActive = "active"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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() *errors_utils.RestError
func (*User) FindByStatus ¶
func (user *User) FindByStatus(status string) ([]User, *errors_utils.RestError)
func (*User) Get ¶
func (user *User) Get() *errors_utils.RestError
func (*User) Save ¶
func (user *User) Save() *errors_utils.RestError
func (*User) Update ¶
func (user *User) Update() *errors_utils.RestError
func (*User) Validate ¶
func (user *User) Validate() *errors_utils.RestError
Click to show internal directories.
Click to hide internal directories.