api

package
v0.0.0-...-ac0e98d Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package api binds the crud domain set of routes into the specified app.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Routes

func Routes(app *fiber.App, cfg Config)

Routes sets up the API routes for the application.

Types

type Config

type Config struct {
	Log                  *zerolog.Logger
	DB                   *sqlx.DB
	Maker                maker.Maker
	TaskDistributor      worker.TaskDistributor
	AccessTokenDuration  time.Duration
	RefreshTokenDuration time.Duration
}

Config contains the configuration for setting up the API routes.

Directories

Path Synopsis
Package authgrp maintains the group of handlers for auth access.
Package authgrp maintains the group of handlers for auth access.
Package ntfgrp maintains the group of handlers for notification access.
Package ntfgrp maintains the group of handlers for notification access.
Package subgrp maintains the group of handlers for subscription access.
Package subgrp maintains the group of handlers for subscription access.
Package topicgrp maintains the group of handlers for topic access.
Package topicgrp maintains the group of handlers for topic access.
Package usergrp maintains the group of handlers for user access.
Package usergrp maintains the group of handlers for user access.
Package vrfgrp maintains the group of handlers for verification access.
Package vrfgrp maintains the group of handlers for verification access.

Jump to

Keyboard shortcuts

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