Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
NOTE: This is your primary database and should remain consistent across any server instance
Functions ¶
func NewMysqlDB ¶
func NewRedisDB ¶
func NewRedisDB(host, port, pass string) *redis.Client
Types ¶
type Server ¶
type Server struct { Router *gin.Engine Context *gin.Context RedisClient *redis.Client FileAdapter *fileadapter.Adapter TokenInterface *middlewares.TokenInterface }
func (*Server) InitializeRoutes ¶
func (server *Server) InitializeRoutes()
func (*Server) InitializeServer ¶
Click to show internal directories.
Click to hide internal directories.