Documentation ¶ Index ¶ Variables func GetSelfDB() *gorm.DB func GetUserList(username string, page int) ([]*model.UserModel, uint64, error) func InitSelfDB() *gorm.DB type Database func (db *Database) Close() func (db *Database) Init(username, password, addr, name string) Constants ¶ This section is empty. Variables ¶ View Source var User = &userService{ mutex: &sync.Mutex{}, } User service Functions ¶ func GetSelfDB ¶ added in v0.0.8 func GetSelfDB() *gorm.DB func GetUserList ¶ added in v0.0.8 func GetUserList(username string, page int) ([]*model.UserModel, uint64, error) func InitSelfDB ¶ added in v0.0.8 func InitSelfDB() *gorm.DB Init client storage. Types ¶ type Database ¶ type Database struct { Self *gorm.DB } var DB *Database func (*Database) Close ¶ func (db *Database) Close() func (*Database) Init ¶ func (db *Database) Init(username, password, addr, name string) Source Files ¶ View all Source files db.go user.go Click to show internal directories. Click to hide internal directories.