route

package
v0.0.0-...-b033284 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Services

type Services struct {
	DB     *pg.DB
	Log    *zap.Logger
	JWT    *mw.JWT
	Mail   mail.Service
	Mobile mobile.Service
	R      *gin.Engine
}

Services lets us bind specific services when setting up routes

func NewServices

func NewServices(DB *pg.DB, Log *zap.Logger, JWT *mw.JWT, Mail mail.Service, Mobile mobile.Service, R *gin.Engine) *Services

NewServices creates a new router services

func (*Services) SetupV1Routes

func (s *Services) SetupV1Routes()

SetupV1Routes instances various repos and services and sets up the routers

Jump to

Keyboard shortcuts

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