Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLat = errors.New("Latitude must be between -90 and 90 degrees") ErrInvalidLon = errors.New("Longitude must be between -180 and 180 degrees") )
View Source
var ( ErrInvalidName = errors.New("Name must be at least 3 characters") ErrInvalidRadius = errors.New("Radius must be greater than 0 miles") )
Functions ¶
This section is empty.
Types ¶
type PostedRoom ¶
type PostedRoom struct { Name string `json:"name" gorm:"unique_index"` Coordinates Point `json:"coordinates"` }
func (*PostedRoom) Validate ¶
func (r *PostedRoom) Validate() error
type PostedUser ¶
func (*PostedUser) HashPassword ¶
func (u *PostedUser) HashPassword() error
func (*PostedUser) Validate ¶
func (u *PostedUser) Validate() error
type User ¶
type User struct { ID int64 `json:"id"` Email string `json:"email" gorm:"unique_index"` Password string `json:"-"` Admin bool `json:"-"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
func (*User) CheckPassword ¶
type UserClaims ¶
Click to show internal directories.
Click to hide internal directories.