Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthResponse ¶
type LoginInput ¶
type Meetup ¶
type Meetup struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
UserID string `json:"userId"`
}
Meetup struct defines meetup fields
type MeetupFilter ¶
type MeetupFilter struct {
Name *string `json:"name"`
}
type RegisterInput ¶
type UpdateMeetup ¶
type User ¶
type User struct {
ID string `json:"id"`
Username string `json:"username"`
Email string `json:"email"`
Password string `json:"password"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
User struct binds user fields
func (*User) ComparePassword ¶
func (*User) GenerateToken ¶
GenerateToken generates a jwt token
func (*User) HashPassword ¶
HashPassword hash's password
Click to show internal directories.
Click to hide internal directories.