routes

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const GlobalMiddlewaresKey = `group:"_routesGlobalMiddlewares"`
View Source
const PerLedgerMiddlewaresKey = `group:"_perLedgerMiddlewares"`

Variables

Functions

func ProvideGlobalMiddleware

func ProvideGlobalMiddleware(provider interface{}, additionalAnnotations ...fx.Annotation) fx.Option

func ProvidePerLedgerMiddleware

func ProvidePerLedgerMiddleware(provider interface{}, additionalAnnotations ...fx.Annotation) fx.Option

Types

type Routes

type Routes struct {
	// contains filtered or unexported fields
}

Routes -

func NewRoutes

func NewRoutes(
	globalMiddlewares []gin.HandlerFunc,
	perLedgerMiddlewares []gin.HandlerFunc,
	resolver *ledger.Resolver,
	authMiddleware middlewares.AuthMiddleware,
	ledgerMiddleware middlewares.LedgerMiddleware,
	configController controllers.ConfigController,
	ledgerController controllers.LedgerController,
	scriptController controllers.ScriptController,
	accountController controllers.AccountController,
	transactionController controllers.TransactionController,
	mappingController controllers.MappingController,
	logger logging.Logger,
) *Routes

NewRoutes -

func (*Routes) Engine

func (r *Routes) Engine(cc cors.Config) *gin.Engine

Engine -

Jump to

Keyboard shortcuts

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