Back to

Package route

Latest Go to latest

The latest major version is .

Published: Apr 18, 2020 | License: Apache-2.0 | Module:


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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier