handler

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2019 License: ISC Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Entry

func Entry(w http.ResponseWriter, r *http.Request)

Entry function

func Index

func Index(w http.ResponseWriter, r *http.Request)

Index function

func LoadTemplates

func LoadTemplates()

LoadTemplates parse

func Login

func Login(w http.ResponseWriter, r *http.Request)

Login function

func Register

func Register(w http.ResponseWriter, r *http.Request)

Register function

func Settings

func Settings(w http.ResponseWriter, r *http.Request)

Settings function

func Web

func Web(w http.ResponseWriter, r *http.Request)

Web function

Types

type Category

type Category struct {
	ID   int
	Name string
}

Category to pass with Data

type Data

type Data struct {
	User            string
	Lang            string
	Special         int
	LoggedOut       bool
	TwoFactor       TwoFactorData
	Entry           Password
	Passwords       []Password
	Pwns            []string
	Categories      []Category
	DefaultCategory Category
	Crypter         string
}

Data to pass into template

type Password

type Password struct {
	ID         int
	Title      string
	Name       string
	Mail       string
	Value      string
	URL        string
	BackupCode string
	Notes      string
	Category   int
}

Password structure

type TwoFactorData

type TwoFactorData struct {
	Image                string
	Secret               string
	Disabled             bool
	OneTimePasswordWrong bool
}

TwoFactorData data for two-factor authentication

Jump to

Keyboard shortcuts

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