Documentation ¶
Overview ¶
Package user provides access to the user table in the MySQL database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connection ¶
type Connection interface { Exec(query string, args ...interface{}) (sql.Result, error) Get(dest interface{}, query string, args ...interface{}) error Select(dest interface{}, query string, args ...interface{}) error }
Connection is an interface for making queries.
type Item ¶
type Item struct { ID uint32 `db:"id"` FirstName string `db:"first_name"` LastName string `db:"last_name"` Email string `db:"email"` Password string `db:"password"` StatusID uint8 `db:"status_id"` CreatedAt mysql.NullTime `db:"created_at"` UpdatedAt mysql.NullTime `db:"updated_at"` DeletedAt mysql.NullTime `db:"deleted_at"` }
Item defines the model.
Click to show internal directories.
Click to hide internal directories.