providers

package
v0.0.0-...-312d638 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForceHTTPS

func ForceHTTPS(c *fiber.Ctx) error

ForceHTTPS Forces HTTPS protocol if not forwarded using a reverse proxy

func GetConfiguration

func GetConfiguration() (config *configuration.Configuration)

func HashProvider

func HashProvider() hashing.Driver

func SetAuthProvider

func SetAuthProvider(config ...Config)

func SetConfiguration

func SetConfiguration(config *configuration.Configuration)

func SetHashProvider

func SetHashProvider(config ...hashing.Config)

func SuppressWWW

func SuppressWWW(c *fiber.Ctx) error

SuppressWWW suppresses the `www.` at the beginning of URLs

Types

type Config

type Config struct {
	Username string
}

type Provider

type Provider struct {
	Config Config
}

func AuthProvider

func AuthProvider() *Provider

Jump to

Keyboard shortcuts

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