routing

package
v0.0.0-...-49abefd Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package routing contains files that registers the REST endpoints handle by the application

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accounts

func Accounts(accountSrv *service.Account) func(chi.Router)

Accounts handle the requests related to entity.Account

func Login

func Login(accountSrv *service.Account, jwtHandler *jwt.Handler) func(chi.Router)

Login exposes the route that grants user authentication

func NotFound

func NotFound(w http.ResponseWriter, r *http.Request)

NotFound is a route for dealing with nonexisting resources

func Transfers

func Transfers(transferSrv *service.Transfer, jwtHandler *jwt.Handler) func(chi.Router)

Transfers handles the requests related to entity.Transfer

Types

This section is empty.

Jump to

Keyboard shortcuts

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