Documentation ¶ Index ¶ type DbHandler func NewHandler(db *db.DataBase) *DbHandler func (h *DbHandler) AutoMigrate() func (h *DbHandler) InserUser(user model.User) (model.User, error) func (h *DbHandler) UserExist(username string) bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type DbHandler ¶ type DbHandler struct { // contains filtered or unexported fields } func NewHandler ¶ func NewHandler(db *db.DataBase) *DbHandler func (*DbHandler) AutoMigrate ¶ func (h *DbHandler) AutoMigrate() func (*DbHandler) InserUser ¶ func (h *DbHandler) InserUser(user model.User) (model.User, error) func (*DbHandler) UserExist ¶ func (h *DbHandler) UserExist(username string) bool Source Files ¶ View all Source files handler.go user.go Click to show internal directories. Click to hide internal directories.