Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(cfg Config, controllers Controllers) *fiber.App
New builds a new Fiber application and set up the required routes
Types ¶
type Controllers ¶ added in v3.1.1
type Controllers struct { Auth *controller.Auth Users *controller.Users Cover func(c *fiber.Ctx) error Send func(c *fiber.Ctx) error Download func(c *fiber.Ctx) error Read func(c *fiber.Ctx) error Search func(c *fiber.Ctx) error AllowIfNotLoggedInMiddleware func(c *fiber.Ctx) error AlwaysRequireAuthenticationMiddleware func(c *fiber.Ctx) error ConfigurableAuthenticationMiddleware func(c *fiber.Ctx) error ErrorHandler func(c *fiber.Ctx, err error) error }
func SetupControllers ¶ added in v3.1.1
func SetupControllers(cfg Config, db *gorm.DB, metadataReaders map[string]metadata.Reader, idx *index.BleveIndexer, sender Sender) Controllers
Click to show internal directories.
Click to hide internal directories.