rest

package
v0.0.0-...-54db4b9 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JwtVerify

func JwtVerify(next http.Handler) http.Handler

Types

type App

type App struct {
	Router     *mux.Router
	Users      dao.UserRepo
	Validator  *validator.Validate
	Translator ut.Translator
}

func (*App) Init

func (a *App) Init(user, password, dbname string)

func (*App) Run

func (a *App) Run(addr string)

Jump to

Keyboard shortcuts

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