Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataAccessInterface ¶
type DataAccessInterface interface { SetupDatabase() error LookupUserByEmail(id string) *models.User LookupUserByID(email string) *models.User }
DataAccessInterface data access interface
数据访问接口
func NewDatabase ¶
func NewDatabase() (*DataAccessInterface, error)
type Database ¶
type Database struct{}
func (*Database) LookupUserByEmail ¶
LookupUserByEmail get user by email 通过email查找用户
func (*Database) LookupUserByID ¶
LookupUserByID get user by id 通过ID查找用户
func (*Database) SetupDatabase ¶
Click to show internal directories.
Click to hide internal directories.