service

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL