Versions in this module Expand all Collapse all v0 v0.1.0 Oct 20, 2020 Changes in this version + type Conf struct + DB *gorm.DB + LogMiddleware mux.MiddlewareFunc + ReadTimeout *time.Duration + TimeoutMiddleware mux.MiddlewareFunc + UserModel UserModel + WriteTimeout *time.Duration + type DefaultUser struct + Email string + ID uint + Password string + func (DefaultUser) EmailColumnName() string + func (DefaultUser) TableName() string + func (u DefaultUser) GetEmail() string + func (u DefaultUser) GetID() uint + func (u DefaultUser) GetPassword() string + type Server struct + DB *gorm.DB + RootPath string + Router *mux.Router + func NewServer(db *gorm.DB) *Server + func NewServerWithOpts(conf *Conf) *Server + func (server *Server) HandleFunc(method, path string, f func(http.ResponseWriter, *http.Request)) + func (server *Server) HandleFuncWithAuth(method, path string, f func(http.ResponseWriter, *http.Request)) + func (server *Server) Run() + func (server *Server) Shutdown() + type UserModel interface + EmailColumnName func() string + GetEmail func() string + GetID func() uint + GetPassword func() string + TableName func() string