services

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2017 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSRF

type CSRF interface {
	// Generate generates a new CSRF token for an user.
	Generate(userID int) (string, error)
	// Validate checks the CSRF token is valid, and if it is it deletes it.
	Validate(userID int, key string) (bool, error)
}

CSRF is a service that avoids Cross Site Request Forgery by giving tokens that will then be used to make sure no third party is interfering.

type Database

type Database interface {
}

A Database should provide a reliable datastore in which to store the data required for Hanayo to run.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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