app

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var App *fiber.App //nolint:gochecknoglobals
View Source
var Ctx *fiber.Ctx
View Source
var DB *gorm.DB //nolint:gochecknoglobals
View Source
var Enforcer *casbin.Enforcer //nolint:gochecknoglobals
View Source
var Flash *flash.Flash
View Source
var MailerServer *mail.SMTPServer
View Source
var Paypal *paypal.Client
View Source
var PermissionAdapter *gormadapter.Adapter //nolint:gochecknoglobals
View Source
var RedisClient *redis.Client
View Source
var Session *session.Session
View Source
var TemplateEngine *html.Engine

Functions

This section is empty.

Types

type HashConfig

type HashConfig struct {
	// Argon2id configuration
	Params *argon2id.Params
}

type HashDriver

type HashDriver struct {
	// Configuration for the argon2id driver
	Config *HashConfig
}
var Hash *HashDriver //nolint:gochecknoglobals

func NewHashDriver

func NewHashDriver(config ...HashConfig) *HashDriver

func (*HashDriver) Create

func (d *HashDriver) Create(password string) (hash string, err error)

func (*HashDriver) Match

func (d *HashDriver) Match(password string, hash string) (match bool, err error)

type Logger

type Logger struct {
	*zerolog.Logger
}
var Log *Logger

Jump to

Keyboard shortcuts

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