Documentation ¶ Index ¶ func Bootstrap(life fx.Lifecycle, server *Server) func Module() fx.Option func NewConfig() *iris.Configuration func NewDB(cfg *iris.Configuration) *gorm.DB func Run() type Server func New(cfg *iris.Configuration, db *gorm.DB, userHandler *handler.UserHandler) *Server Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Bootstrap ¶ func Bootstrap(life fx.Lifecycle, server *Server) func Module ¶ func Module() fx.Option func NewConfig ¶ func NewConfig() *iris.Configuration NewConfig init config func NewDB ¶ func NewDB(cfg *iris.Configuration) *gorm.DB NewDB database func Run ¶ func Run() Types ¶ type Server ¶ type Server struct { *iris.Application *iris.Configuration DB *gorm.DB } func New ¶ func New(cfg *iris.Configuration, db *gorm.DB, userHandler *handler.UserHandler) *Server Source Files ¶ View all Source files server.go Click to show internal directories. Click to hide internal directories.