middleware

package
v0.0.0-...-c901fe9 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2019 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSession

func GetSession(ctx iris.Context) *sessions.Session

func InitializeSession

func InitializeSession(ctx iris.Context)

func InitializeSettings

func InitializeSettings(ctx iris.Context)

func KillSession

func KillSession(ctx iris.Context)

func LoadSettings

func LoadSettings()

func NewSession

func NewSession(ctx iris.Context) *sessions.Session

func SetupSessionBackend

func SetupSessionBackend(db sessions.Database)

Types

type Settings

type Settings struct {
	RegistrationsOpen bool   `yaml:"registrationsOpen"`
	URL               string `yaml:"url"`
	UseTLS            bool   `yaml:"useTLS"`
	TLSCert           string `yaml:"tlsCert"`
	TLSKey            string `yaml:"tlsKey"`
}
var GlobalSettings Settings

Jump to

Keyboard shortcuts

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