routes

package
v0.9.18 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: AGPL-3.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(ctx context.Context, r *RouterProps) error

Setup handles all the routes for the application It receives the configuration, logger and db connection from main and then passes them to the controllers

Types

type RouterProps added in v0.9.13

type RouterProps struct {
	Conf            *cfg.Config
	Log             *zerolog.Logger
	LogHandler      fiber.Handler
	LegacyDB        *sqlx.DB
	DB              *pgxpool.Pool
	App             *fiber.App
	SessionHandler  *session.Store
	WebsocketConfig *websocket.Config
	Validation      *validator.Validate
	Cache           *redis.Storage
}

Jump to

Keyboard shortcuts

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