Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateUserParams ¶
type CreateUserParams struct { ID string `json:"id"` Username string `json:"username"` FirstName string `json:"first_name"` LastName string `json:"last_name"` HashedPassword string `json:"hashed_password"` Email string `json:"email"` UserType int32 `json:"user_type"` Active int32 `json:"active"` CreatedAt time.Time `json:"created_at"` LastAccessedAt time.Time `json:"last_accessed_at"` PasswordChangedAt time.Time `json:"password_changed_at"` }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateUser ¶
type SQLStore ¶
type SQLStore struct { *Queries // contains filtered or unexported fields }
Store provides all functions to execute db queries and transactions
type User ¶
type User struct { ID string `json:"id"` Username string `json:"username"` FirstName string `json:"first_name"` LastName string `json:"last_name"` HashedPassword string `json:"hashed_password"` Email string `json:"email"` UserType int32 `json:"user_type"` Active int32 `json:"active"` CreatedAt time.Time `json:"created_at"` LastAccessedAt time.Time `json:"last_accessed_at"` PasswordChangedAt time.Time `json:"password_changed_at"` }
Click to show internal directories.
Click to hide internal directories.