rest

package
v0.0.0-...-cec8117 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 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
	Server     *http.Server
}

func (*App) Init

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

func (*App) Run

func (a *App) Run(addr string)

func (*App) Shutdown

func (a *App) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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