Documentation ¶
Index ¶
- func CreateLst(db *sqlx.DB, lst *Lst) error
- func CreateLstEntity(db *sqlx.DB, entity *LstEntity) error
- func CreateTables(db *sqlx.DB)
- func CreateUser(db *sqlx.DB, usr *User) error
- func CreateUserEntity(db *sqlx.DB, entity *UserEntity) error
- func CreateUserLink(db *sqlx.DB, lnk *UserLink) error
- func DelLst(db *sqlx.DB, lid uint64) error
- func DelLstEntity(db *sqlx.DB, id int) error
- func DelUser(db *sqlx.DB, uid uint64) error
- func DelUserEntity(db *sqlx.DB, id uint32) error
- func DelUserLink(db *sqlx.DB, id int32) error
- func RecordUserPreviousName(db *sqlx.DB, uid uint64, name string, screenName string) error
- func SetUserEntityLatestReleaseTime(db *sqlx.DB, id int, t time.Time) error
- func UpdateLst(db *sqlx.DB, lst *Lst) error
- func UpdateLstEntity(db *sqlx.DB, entity *LstEntity) error
- func UpdateUser(db *sqlx.DB, usr *User) error
- func UpdateUserEntity(db *sqlx.DB, entity *UserEntity) error
- func UpdateUserLink(db *sqlx.DB, id int32, name string) error
- type Lst
- type LstEntity
- type User
- type UserEntity
- type UserLink
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTables ¶
func CreateUserEntity ¶
func CreateUserEntity(db *sqlx.DB, entity *UserEntity) error
func RecordUserPreviousName ¶
func UpdateUserEntity ¶
func UpdateUserEntity(db *sqlx.DB, entity *UserEntity) error
Types ¶
type LstEntity ¶
type LstEntity struct { Id sql.NullInt32 `db:"id"` LstId int64 `db:"lst_id"` Name string `db:"name"` ParentDir string `db:"parent_dir"` }
func LocateLstEntity ¶
type User ¶
type UserEntity ¶
type UserEntity struct { Id sql.NullInt32 `db:"id"` Uid uint64 `db:"user_id"` Name string `db:"name"` LatestReleaseTime sql.NullTime `db:"latest_release_time"` ParentDir string `db:"parent_dir"` }
func GetUserEntity ¶
func GetUserEntity(db *sqlx.DB, id int) (*UserEntity, error)
func LocateUserEntity ¶
func (*UserEntity) Path ¶
func (ue *UserEntity) Path() string
Click to show internal directories.
Click to hide internal directories.