server

package
v0.0.0-...-1b7ffe2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run()

Types

type Server

type Server struct {
	Router      *gin.Engine
	MongoClient *mongoDriver.Client
	RedisClient *redis.Client
	Env         *config.Env
}
var HttpServer Server

func (*Server) InitRoutes

func (s *Server) InitRoutes()

func (*Server) Initialize

func (s *Server) Initialize(mongoClient *mongoDriver.Client, redisClient *redis.Client, cfg *config.Env)

func (*Server) Run

func (s *Server) Run(addr string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL