Documentation ¶ Index ¶ func Setup(ctx context.Context, r *RouterProps) error type RouterProps 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 } Source Files ¶ View all Source files routes.go Click to show internal directories. Click to hide internal directories.