initializer

package
v1.0.8 Latest Latest
Warning

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

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

README

/initializer

auth.go

JWT 兼容 Jsend 返回值格式。

redigo

Redis 和 分布式锁。

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitAuthMiddleware

func InitAuthMiddleware(conf *config.Configuration) *gjwt.GinJWTMiddleware

Types

type Application

type Application struct {
	Conf           *config.Configuration
	DB             *gorm.DB
	AuthMiddleware *gjwt.GinJWTMiddleware
	Cache          *cache.Cache
}

func InitApp

func InitApp() *Application

func (*Application) Close

func (app *Application) Close()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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