infrastructure

package
v0.0.0-...-1015d97 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJwt

func NewJwt(privateKeyPath string) (jwtResources *models.JwtResources, err error)

func NewResources

func NewResources(fasthttpClient *fasthttp.Client, mainDbConn *gorm.DB, logDbConn *mongo.Database, redisStorage *redis.Storage, jwtResources *models.JwtResources) models.Resources

Types

type Server

type Server struct {
	models.Resources
	Version string
	Build   string
	RunEnv  string
	PrdMode bool
}

func NewServer

func NewServer(version, buildTag, runEnv string) (server *Server, err error)

func (*Server) Run

func (s *Server) Run() (err error)

func (*Server) SetupRoutes

func (s *Server) SetupRoutes(app *fiber.App)

SetupRoutes is the Router for GoFiber App

Jump to

Keyboard shortcuts

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